Enable genesis/fuel HA deployment in LF POD1 93/893/1
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 24 Jun 2015 19:48:24 +0000 (21:48 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 24 Jun 2015 19:48:24 +0000 (21:48 +0200)
JIRA: OCTO-74

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

index 1b163a0..1eb21f3 100644 (file)
 
     builders:
         - 'fuel-download-artifact'
-        - 'fuel-deploy'
+        - 'fuel-deploy-{stream}'
 
 - job-template:
     name: 'genesis-fuel-deploy-virtual-master'
             echo "Done!"
 
 - builder:
-    name: 'fuel-deploy'
+    name: 'fuel-deploy-master'
     builders:
         - shell: |
             #!/bin/bash
             echo "--------------------------------------------------------"
             echo "Done!"
 
+- builder:
+    name: 'fuel-deploy-stable-arno'
+    builders:
+        - shell: |
+            #!/bin/bash
+            set -o errexit
+            set -o nounset
+            set -o pipefail
+
+            # source the file so we get OPNFV vars
+            source latest.properties
+
+            # echo the info about artifact that is used during the deployment
+            echo "Using $(echo $OPNFV_ARTIFACT_URL | cut -d'/' -f4) for deployment"
+
+            # create TMPDIR if it doesn't exist
+            export TMPDIR=$HOME/tmp/$JOB_NAME
+            [[ -d $TMPDIR ]] || mkdir -p $TMPDIR
+
+            # change permissions down to TMPDIR
+            chmod a+x $HOME
+            chmod a+x $TMPDIR
+
+            # log info to console
+            echo "Starting the deployment using $INSTALLER. This could take some time..."
+            echo "--------------------------------------------------------"
+            echo
+
+            # start the deployment
+            echo "Issuing command"
+            echo "sudo $WORKSPACE/fuel/ci/deploy.sh $WORKSPACE/opnfv.iso $WORKSPACE/fuel/deploy/baremetal/conf/linux_foundation_lab/ha/dea.yaml $WORKSPACE/fuel/deploy/baremetal/conf/linux_foundation_lab/ha/dha.yaml -s $TMPDIR"
+
+            sudo $WORKSPACE/fuel/ci/deploy.sh $WORKSPACE/opnfv.iso $WORKSPACE/fuel/deploy/baremetal/conf/linux_foundation_lab/ha/dea.yaml $WORKSPACE/fuel/deploy/baremetal/conf/linux_foundation_lab/ha/dha.yaml -s $TMPDIR
+            echo
+            echo "--------------------------------------------------------"
+            echo "Done!"
+
 - builder:
     name: 'fuel-deploy-virtual'
     builders: