X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fgenesis%2Fgenesis-fuel.yml;h=a30c279d35e9fb5322b6ed6b093720fcfcd23bc6;hb=f7d774bd45cab36eefab7baf6180f84ed4296a6e;hp=d73c4563f9a8593a2c85b1f43a2642ac95f38dcb;hpb=7401903ddc26751f38b2fe5aec4470ad033b1dbb;p=releng.git diff --git a/jjb/genesis/genesis-fuel.yml b/jjb/genesis/genesis-fuel.yml index d73c4563f..a30c279d3 100644 --- a/jjb/genesis/genesis-fuel.yml +++ b/jjb/genesis/genesis-fuel.yml @@ -15,8 +15,9 @@ - 'genesis-fuel-daily-{stream}' - 'genesis-fuel-build-{stream}' - 'genesis-fuel-deploy-{stream}' - - 'genesis-fuel-deploy-virtual-master' - 'genesis-fuel-deploy-runner-{stream}' + - 'genesis-fuel-lab-reconfig-{stream}' + - 'genesis-fuel-deploy-virtual-{stream}' # stream: branch with - in place of / (eg. stable-arno) # branch: branch (eg. stable/arno) @@ -196,16 +197,75 @@ - project: 'genesis-fuel-build-{stream}' git-revision: true block: true -# - trigger-builds: -# - project: 'genesis-fuel-deploy-runner-{stream}' -# git-revision: true -# block: true -# - trigger-builds: -# - project: 'functest-opnfv-jump-1' -# block: true -# - trigger-builds: -# - project: 'yardstick-opnfv-jump-1' -# block: true + - trigger-builds: + - project: 'genesis-fuel-lab-reconfig-{stream}' + git-revision: true + block: true + - trigger-builds: + - project: 'genesis-fuel-deploy-{stream}' + git-revision: true + block: true + - trigger-builds: + - project: 'functest-fuel-{stream}' + block: true + block-thresholds: + build-step-failure-threshold: 'never' + failure-threshold: 'never' + unstable-threshold: 'FAILURE' + - trigger-builds: + - project: 'yardstick-fuel-{stream}' + block: true + block-thresholds: + build-step-failure-threshold: 'never' + failure-threshold: 'never' + unstable-threshold: 'FAILURE' + +- job-template: + name: 'genesis-fuel-deploy-runner-{stream}' + + project-type: freestyle + + disabled: false + + node: master + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + parameters: + - project-parameter: + project: '{project}' + - foreman-parameter: + installer: '{installer}' + gs-pathname: '{gs-pathname}' + - string: + name: GIT_BASE + default: ssh://gerrit.opnfv.org:29418/$PROJECT + description: "Used for overriding the GIT URL coming from parameters macro." + + scm: + - git-scm: + credentials-id: '{ssh-credentials}' + refspec: '' + branch: '{branch}' + + properties: + - build-blocker: + use-build-blocker: true + blocking-jobs: + - "genesis-foreman-daily.*" + - "genesis-foreman-deploy-runner-{stream}" + - "genesis-fuel-daily.*" + + builders: + - 'fuel-lab-reconfig' + - trigger-builds: + - project: 'genesis-fuel-deploy-{stream}' + git-revision: true + block: true - job-template: name: 'genesis-fuel-build-{stream}' @@ -256,7 +316,7 @@ - string: name: GIT_BASE default: ssh://gerrit.opnfv.org:29418/$PROJECT - description: "POD1 has some issues with cloning using https so that's why GIT_BASE is overriden here again." + description: "POD2 has some issues with cloning using https so that's why GIT_BASE is overriden here again." scm: - git-scm: @@ -272,10 +332,10 @@ builders: - 'fuel-download-artifact' - - 'fuel-deploy-{stream}' + - 'fuel-deploy' - job-template: - name: 'genesis-fuel-deploy-runner-{stream}' + name: 'genesis-fuel-lab-reconfig-{stream}' project-type: freestyle @@ -306,15 +366,17 @@ refspec: '' branch: '{branch}' + properties: + - build-blocker: + use-build-blocker: true + blocking-jobs: + - "genesis-foreman-daily.*" + builders: - 'fuel-lab-reconfig' - - trigger-builds: - - project: 'genesis-fuel-deploy-{stream}' - git-revision: true - block: true - job-template: - name: 'genesis-fuel-deploy-virtual-master' + name: 'genesis-fuel-deploy-virtual-{stream}' project-type: freestyle @@ -333,7 +395,7 @@ - git-scm: credentials-id: '{ssh-credentials}' refspec: '' - branch: master + branch: 'master' logrotate: daysToKeep: 30 @@ -416,7 +478,7 @@ echo "Done!" - builder: - name: 'fuel-deploy-master' + name: 'fuel-deploy' builders: - shell: | #!/bin/bash @@ -438,56 +500,16 @@ chmod a+x $HOME chmod a+x $TMPDIR - # set TOPDIR, CONFDIR - export TOPDIR=$WORKSPACE/fuel/prototypes/auto-deploy - export CONFDIR=$WORKSPACE/fuel/deploy/baremetal/conf/linux_foundation_lab/pod2/multinode - - # cleanup first - sudo $WORKSPACE/common/ci/clean.sh -base_config $WORKSPACE/foreman/ci/inventory/lf_pod2_ksgen_settings.yml - - # 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 TMPDIR=${TMPDIR} ${TOPDIR}/deploy/deploy.sh ${WORKSPACE}/opnfv.iso ${CONFDIR}/dea.yaml ${CONFDIR}/dha.yaml" - sudo TMPDIR=${TMPDIR} ${TOPDIR}/deploy/deploy.sh ${WORKSPACE}/opnfv.iso ${CONFDIR}/dea.yaml ${CONFDIR}/dha.yaml - - echo - 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 - - # set CONFDIR + # set CONFDIR, BRIDGE export CONFDIR=$WORKSPACE/fuel/deploy/baremetal/conf/linux_foundation_lab/pod2/ha + export BRIDGE=pxebr # cleanup first sudo $WORKSPACE/common/ci/clean.sh -base_config $WORKSPACE/foreman/ci/inventory/lf_pod2_ksgen_settings.yml + # prepare for Fuel Deployment + sudo $WORKSPACE/common/ci/setup.sh + # log info to console echo "Starting the deployment using $INSTALLER. This could take some time..." echo "--------------------------------------------------------" @@ -495,9 +517,9 @@ # start the deployment echo "Issuing command" - echo "sudo $WORKSPACE/fuel/ci/deploy.sh $WORKSPACE/opnfv.iso ${CONFDIR}/dea.yaml ${CONFDIR}/dha.yaml -s $TMPDIR" + echo "sudo $WORKSPACE/fuel/ci/deploy.sh $WORKSPACE/opnfv.iso $CONFDIR/dea.yaml $CONFDIR/dha.yaml -s $TMPDIR -b $BRIDGE" + sudo $WORKSPACE/fuel/ci/deploy.sh $WORKSPACE/opnfv.iso $CONFDIR/dea.yaml $CONFDIR/dha.yaml -s $TMPDIR -b $BRIDGE - sudo $WORKSPACE/fuel/ci/deploy.sh $WORKSPACE/opnfv.iso ${CONFDIR}/dea.yaml ${CONFDIR}/dha.yaml -s $TMPDIR echo echo "--------------------------------------------------------" echo "Done!" @@ -658,8 +680,8 @@ done if [ "$ping_flag" -eq 1 ]; then - echo "Slave is pingable, now wait 60 seconds for services to start" - sleep 60 + echo "Slave is pingable, now wait 180 seconds for services to start" + sleep 180 else echo "Slave did not come back up after reboot: please check opnfv-jump-2" exit 1 @@ -678,9 +700,9 @@ - trigger: name: 'fuel-master' triggers: - - timed: '0 21 * * *' + - timed: '0 5 * * *' - trigger: name: 'fuel-stable-arno' triggers: - - timed: '0 3 * * *' + - timed: '0 9 * * *'