jjb: xci: Do not check for the WORKSPACE variable 21/57521/1
authorMarkos Chandras <mchandras@suse.de>
Thu, 17 May 2018 08:11:11 +0000 (09:11 +0100)
committerMarkos Chandras <mchandras@suse.de>
Thu, 17 May 2018 08:12:07 +0000 (09:12 +0100)
The WORKSPACE variable is always set so we do not need to check it
in the script.

Change-Id: I33d2e17b9a4a7b262c781c7442cc69c2433f8729
Signed-off-by: Markos Chandras <mchandras@suse.de>
jjb/xci/xci-start-new-vm.sh

index 1749328..79b6a78 100755 (executable)
@@ -67,7 +67,7 @@ export CI_LOOP=$CI_LOOP
 export BUILD_TAG=$BUILD_TAG
 export NODE_NAME=$NODE_NAME
 
-if [[ ! -z ${WORKSPACE+x} && $GERRIT_PROJECT != "releng-xci" ]]; then
+if [[ $GERRIT_PROJECT != "releng-xci" ]]; then
     export XCI_ANSIBLE_PARAMS="-e @/home/devuser/releng-xci/scenario_overrides.yml"
 fi
 
@@ -75,7 +75,7 @@ cd xci
 ./xci-deploy.sh | ts
 EOF
 
-if [[ ! -z ${WORKSPACE+x} && $GERRIT_PROJECT != "releng-xci" ]]; then
+if [[ $GERRIT_PROJECT != "releng-xci" ]]; then
     cat > scenario_overrides.yml <<-EOF
 ---
 xci_scenarios_overrides: