]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
Added switch for updating test state.
authorMarjan Schiller <marjan.schiller@profitbricks.com>
Thu, 4 Jul 2013 08:12:44 +0000 (10:12 +0200)
committerMarjan Schiller <marjan.schiller@profitbricks.com>
Thu, 4 Jul 2013 08:12:44 +0000 (10:12 +0200)
liveboot_set_test_state.sh

index 233fc804bae5930ebecab5fe34f33637410e7c1c..7d25cef04b970af3a157640852157d04dce123ad 100755 (executable)
@@ -3,6 +3,11 @@
 
 set -e
 
+if [ ${LIVEBOOT_UPDATE_TEST_STATE} == "false" ]; then
+        echo "No state will be updated."
+        exit 0
+fi
+
 if [ -z "${LIVEBOOT_BUILD_NUMBER}" ]
 then
     echo "\$LIVEBOOT_BUILD_NUMBER is empty, not using Jenkins? Please export manually!"