Break out prepare steps into a shared script
Many of the same tasks are repeated over and over in the pipeline scripts. This patch brings those tasks into a shared script that is called at the beginning of each stage.
Signed-off-by: Major Hayden major@redhat.com