From 9be5ca4aaac23cf4d063674a6b960c0d80ba420f Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Wed, 24 Jun 2015 21:48:24 +0200 Subject: Enable genesis/fuel HA deployment in LF POD1 JIRA: OCTO-74 Change-Id: I0627613f0034a698c54054ccbc018db59439d1f5 Signed-off-by: Fatih Degirmenci --- jjb/genesis/genesis-fuel.yml | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) (limited to 'jjb/genesis') diff --git a/jjb/genesis/genesis-fuel.yml b/jjb/genesis/genesis-fuel.yml index 1b163a042..1eb21f33d 100644 --- a/jjb/genesis/genesis-fuel.yml +++ b/jjb/genesis/genesis-fuel.yml @@ -271,7 +271,7 @@ builders: - 'fuel-download-artifact' - - 'fuel-deploy' + - 'fuel-deploy-{stream}' - job-template: name: 'genesis-fuel-deploy-virtual-master' @@ -376,7 +376,7 @@ echo "Done!" - builder: - name: 'fuel-deploy' + name: 'fuel-deploy-master' builders: - shell: | #!/bin/bash @@ -415,6 +415,43 @@ 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: -- cgit 1.2.3-korg