Change the deploy command and enable SKIP_BUILD 55/355/2
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Thu, 16 Apr 2015 18:48:20 +0000 (20:48 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Thu, 16 Apr 2015 18:49:27 +0000 (20:49 +0200)
JIRA: OCTO-3

Change-Id: Ib22b534aeb315f265af7b601793c1cc8a71c843c
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/genesis/genesis-fuel.yml

index fe6316c..427108e 100644 (file)
             name: ARTIFACT_VERSION
             default: $BUILD_ID
             description: "Version number to append to resulting ISO."
+        - string:
+            name: SKIP_BUILD
+            default: 0
+            description: "Temporary parameter for deployment testing to skip the build and run deployment only."
 
     scm:
         - git:
             set -o pipefail
             set -x
 
+            # this is here for quick tries with deployment
+            if [ "$SKIP_BUILD" == "1" ]; then
+                echo "Skipping build for deployment testing!"
+                exit 0
+            else
+                echo "Proceeding with build first!"
+            fi
+
             # set/create the cache location
             [[ -d $CACHE_DIRECTORY ]] || mkdir -p $CACHE_DIRECTORY
 
 
             # this is just a quick fix to execute the deployment in a messy way
             # will be fixed later on
-            ssh cideploy@10.118.34.205 ./cideploy.sh
+            ssh -o BatchMode=yes -o TCPKeepAlive=yes cideploy@10.118.34.205 ./cideploy.sh
 
 - builder:
     name: installer-test