Construction and repair of oil and gas pipelines