An agricultural machine comprises a first frame part and a second frame part pivotably arranged about a vertical shaft relative to the first frame part. At least one first supply line which extends along the first frame part and at least one second supply line which extends along the second frame part, wherein a connecting device is arranged, by means of which the at least first supply line and the at least second supply line are connected together. To prevent distortion of the supply lines when pivoting the frame parts relative to one another, the connecting device comprises a retainer on which at least one rigid pipe connection is arranged for connecting the first and second supply lines wherein the pipe connection comprises two connecting ends aligned axially relative to one another, between which a bearing disc is clamped, wherein the bearing disc is rotatably mounted on the retainer.