jjb: xci: Allow CI to run when multiple components are affected 51/53651/3
authorMarkos Chandras <mchandras@suse.de>
Tue, 13 Mar 2018 08:25:44 +0000 (08:25 +0000)
committerMarkos Chandras <mchandras@suse.de>
Tue, 13 Mar 2018 10:08:38 +0000 (10:08 +0000)
Sometimes we make global changes that affect multiple components at
once and splitting that is not possible because it needs to be shipped
as an atomic change. As such, allow topics with 'force-verify' to run
the CI using the default installer and scenario.

Change-Id: Ie4753822111b20c4f479886a55fe569c9b91ccd0
Signed-off-by: Markos Chandras <mchandras@suse.de>
jjb/xci/xci-set-scenario.sh

index 79b31bf..bc78101 100755 (executable)
@@ -92,6 +92,13 @@ if [[ "$GERRIT_TOPIC" =~ skip-verify|skip-deployment ]]; then
     echo "Skipping verify!"
     echo "DEPLOY_SCENARIO=os-nosdn-nofeature" > $WORK_DIRECTORY/scenario.properties
     exit 0
+elif [[ "$GERRIT_TOPIC" =~ 'force-verify' ]]; then
+    # Run the deployment with default installer and scenario when multiple things change
+    # and we want to force that.
+    echo "Forcing CI verification of default scenario and installer!"
+    echo "INSTALLER_TYPE=osa" > $WORK_DIRECTORY/scenario.properties
+    echo "DEPLOY_SCENARIO=os-nosdn-nofeature" >> $WORK_DIRECTORY/scenario.properties
+    exit 0
 fi
 
 if [[ $GERRIT_PROJECT == "releng-xci" ]]; then