https://en.wikipedia.org/wiki/Big_Inch
The US built this project in just under a year of total construction time to convert it's flow of crude oil from Texas to the East coast of the US from tankers, to pipeline. It was ~ 1,400 miles (2,250 km) from Longview TX, to Norristown Il, then on to Pheonixville Pa where it more or less terminated to tie in to the existing east coast pipeline infrastructure. Baku to Ploesti is just under 3,000 km (1,800 miles) and not very useful. To go from Baku to Berlin would be 3,600 km (2,250 miles). At the time of the start of the project, the US already had the worlds largest and best developed pipeline industry (about 70% of world installed capacity) a as well as plenty of surplus labor, steel production capacity, the route was entirely internal, with no potential for sabotage, air raids or other disruptions, and most of it was through flat level soil.
Counting planning time, the project started in May of 1941, although you could say March of 1942 is a fairer start, since that's when it became obvious what was going to have to happen. First oil flowed in August 1943 so 17 months from March of 1942. The concurrent project to ship refined products along a similar but slightly longer route (little inch) from Texas coastal oil refineries to the same destination started at the same time and completed in March of 1944, so exactly two years.