X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Fengine%2Fengine-verify-jobs%2Fengine-verify-offline-deploy-test.yaml;h=2c020afc425bd43faf828331e646fd42e1452eba;hb=fea7fd0173cb58d55c05758672bfd8f4ac0c1b12;hp=ee94e3abb3c6ab68e0d60417ddf9525bf9559c2d;hpb=79e736b702e73f71808b291f2354f7e81ba3063f;p=infra%2Fcicd.git diff --git a/jjb/engine/engine-verify-jobs/engine-verify-offline-deploy-test.yaml b/jjb/engine/engine-verify-jobs/engine-verify-offline-deploy-test.yaml index ee94e3ab..2c020afc 100644 --- a/jjb/engine/engine-verify-jobs/engine-verify-offline-deploy-test.yaml +++ b/jjb/engine/engine-verify-jobs/engine-verify-offline-deploy-test.yaml @@ -77,37 +77,35 @@ description: 'Name of heat-environment file to use.' - string: name: STACK_NAME - default: "nordix-cicd-verify-engine-{distro}-$BUILD_NUMBER" + default: "nordix-cicd-verify-engine-offline-{distro}-$GERRIT_CHANGE_NUMBER" description: 'Name of the created stack' - string: name: KEYPAIR_NAME - default: "keypair-nordix-cicd-verify-engine-{distro}-$BUILD_NUMBER" + default: "keypair-nordix-cicd-verify-engine-offline-{distro}-$GERRIT_CHANGE_NUMBER" description: 'Name of the created keypair' - string: name: USE_PREBUILT_DEPLOYMENT_IMAGE default: 'true' description: 'Use prebuilt deployment image while running as part of CI/CD' + - string: + name: TEST_REPO_URL + default: 'https://gerrit.nordix.org/infra/test.git' + description: 'URL to clone the test repo from' + - string: + name: TEST_FW + default: 'functest' + description: 'Test framework to use' - string: name: TEST_SUITE default: 'healthcheck' description: 'Test suite to run' - - string: - name: YARDSTICK_DISPATCHER - default: 'file' - description: 'Dispatcher to use for Yardstick reporting' - string: name: DELETE_STACK - default: 'yes' + default: 'true' description: 'Delete the stack upon completion of the build' properties: - logrotate -# - build-blocker: -# use-build-blocker: true -# blocking-jobs: -# - 'engine-verify-online-deploy-test-.*' -# - 'engine-verify-offline-deploy-test-.*' -# block-level: 'NODE' - throttle: max-per-node: 1 max-total: 3 @@ -130,6 +128,10 @@ single-use: True builders: + - 'engine-wait-pkg-mgr-macro' + - shell: | + #!/bin/bash + sudo sed -i 's/^search/# search/' /etc/resolv.conf - 'engine-generate-ssh-keypair-macro' - 'engine-download-artifact-macro' - multijob: @@ -141,7 +143,7 @@ current-parameters: true node-parameters: true kill-phase-on: FAILURE - abort-all-job: true + abort-all-job: false - multijob: name: "Offline Testing on {type} instances" condition: SUCCESSFUL @@ -151,19 +153,21 @@ current-parameters: true node-parameters: true kill-phase-on: FAILURE - abort-all-job: true - - conditional-step: - condition-kind: and - condition-operands: - - condition-kind: strings-match - condition-string1: $DELETE_STACK - condition-string2: true - - condition-kind: strings-match - condition-string1: $PROVISIONER_TYPE - condition-string2: heat - on-evaluation-failure: dont-run - steps: - - 'engine-delete-stack-macro' + abort-all-job: false + + publishers: + - postbuildscript: + builders: + - role: SLAVE + build-on: + - SUCCESS + - FAILURE + - ABORTED + - NOT_BUILT + - UNSTABLE + build-steps: + - 'engine-wait-pkg-mgr-macro' + - 'engine-delete-stack-macro' - job-template: name: 'engine-verify-offline-{phase}-{distro}-{cloud}-{type}-{stream}'