- 'genesis-fuel-daily-{stream}'
- 'genesis-fuel-build-{stream}'
- 'genesis-fuel-deploy-{stream}'
- - 'genesis-fuel-deploy-virtual'
+ - 'genesis-fuel-deploy-virtual-master'
# stream: branch with - in place of / (eg. stable-arno)
# branch: branch (eg. stable/arno)
gs-pathname: ''
- stable-arno:
branch: 'stable/arno'
- gs-pathname: 'arno'
+ gs-pathname: '/arno'
########################
# job templates
disabled: false
+ triggers:
+ - 'fuel-{stream}'
+
parameters:
- project-parameter:
project: '{project}'
- git-scm:
credentials-id: '{ssh-credentials}'
refspec: ''
- branch: master
+ branch: '{branch}'
logrotate:
daysToKeep: 30
- trigger-builds:
- project: 'functest-opnfv-jump-1'
block: true
+ - trigger-builds:
+ - project: 'yardstick-opnfv-jump-1'
+ block: true
- job-template:
name: 'genesis-fuel-build-{stream}'
- git-scm:
credentials-id: '{ssh-credentials}'
refspec: ''
- branch: master
+ branch: '{branch}'
builders:
- 'fuel-build'
- git-scm:
credentials-id: '{ssh-credentials}'
refspec: ''
- branch: master
+ branch: '{branch}'
logrotate:
daysToKeep: 30
builders:
- 'fuel-download-artifact'
- - 'fuel-deploy'
+ - 'fuel-deploy-{stream}'
- job-template:
- name: 'genesis-fuel-deploy-virtual'
+ name: 'genesis-fuel-deploy-virtual-master'
project-type: freestyle
- disabled: true
+ disabled: false
node: ericsson-build
name: GIT_BASE
default: https://gerrit.opnfv.org/gerrit/$PROJECT
description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
- - string:
- name: GS_PATHNAME
- default: '{gs-pathname}'
- description: "Subdirectory to store artifacts for different branches."
- string:
name: GS_URL
- default: artifacts.opnfv.org/$PROJECT/$INSTALLER/$GS_PATHNAME
+ default: artifacts.opnfv.org/$PROJECT/$INSTALLER{gs-pathname}
description: "URL to Google Storage."
########################
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:
echo
echo "--------------------------------------------------------"
echo "Done!"
+ echo "Artifact is available as http://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso"
- builder:
name: 'fuel-download-artifact'
# delete everything that is in $WORKSPACE
/bin/rm -rf $WORKSPACE
+
+########################
+# trigger macros
+########################
+- trigger:
+ name: 'fuel-master'
+ triggers:
+ - pollscm: '0 21 * * *'
+
+- trigger:
+ name: 'fuel-stable-arno'
+ triggers:
+ - pollscm: '0 3 * * *'