Oil pipeline contraction and expansion and upsetting production line