[fuel] Turn off upload action & checkout 25/35525/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Tue, 30 May 2017 10:36:55 +0000 (14:36 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Tue, 30 May 2017 10:37:54 +0000 (14:37 +0400)
* turn off non-existent artifacts upload
* use latest commit in master since there is no iso/image
  for mcp based deployments yet

Change-Id: Ib92680ef9838fc2e11d61c806dfd9728514c364e
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
jjb/fuel/fuel-build.sh
jjb/fuel/fuel-deploy.sh

index e4a3041..2c0d12a 100755 (executable)
@@ -10,6 +10,7 @@
 
 # disable Fuel iso build for master branch
 if [[ "$BRANCH" == 'master' ]]; then
 
 # disable Fuel iso build for master branch
 if [[ "$BRANCH" == 'master' ]]; then
+    touch $WORKSPACE/.noupload
     echo "--------------------------------------------------------"
     echo "Done!"
     exit 0
     echo "--------------------------------------------------------"
     echo "Done!"
     exit 0
index f5bbd18..4d48ee5 100755 (executable)
@@ -21,7 +21,7 @@ echo "Using ${OPNFV_ARTIFACT_URL/*\/} for deployment"
 if [[ "$JOB_NAME" =~ "merge" ]]; then
     # set simplest scenario for virtual deploys to run for merges
     DEPLOY_SCENARIO="os-nosdn-nofeature-ha"
 if [[ "$JOB_NAME" =~ "merge" ]]; then
     # set simplest scenario for virtual deploys to run for merges
     DEPLOY_SCENARIO="os-nosdn-nofeature-ha"
-else
+elif [[ "$BRANCH" != 'master' ]]; then
     # for none-merge deployments
     # checkout the commit that was used for building the downloaded artifact
     # to make sure the ISO and deployment mechanism uses same versions
     # for none-merge deployments
     # checkout the commit that was used for building the downloaded artifact
     # to make sure the ISO and deployment mechanism uses same versions