Always test all proposed pipeline changes
The pipeline is set to always pull scripts from the master branch of pipeline-definition
, but this does not allow changes to those scripts to be tested when a merge request is made.
Instead, detect when the pipeline-definition
CI has specified a branch to test and use the correct branch for testing.
As a test to ensure this works, move the functions from before_script
into its own shell script file and migrate the prepare
scripts there as well.
Signed-off-by: Major Hayden major@redhat.com
Edited by Major Hayden