summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
1828576)
Change-Id: Ie5103efaa6c924d4eddbbd622db3a145b0dfc59a
-# - build-blocker:
-# use-build-blocker: true
-# blocking-jobs:
-# - 'engine-verify-online-ubuntu1804.*'
-# - 'engine-verify-offline-ubuntu1804.*'
-# block-level: 'NODE'
- throttle:
max-per-node: 1
max-total: 3
- throttle:
max-per-node: 1
max-total: 3
node-parameters: true
kill-phase-on: FAILURE
abort-all-job: true
node-parameters: true
kill-phase-on: FAILURE
abort-all-job: true
-# enable-condition: "\"$EXECUTION_MODE\" == \"offline-deployment\""
- multijob:
name: "{environment-type} deployment and testing"
condition: SUCCESSFUL
- multijob:
name: "{environment-type} deployment and testing"
condition: SUCCESSFUL
EXECUTION_MODE=$EXECUTION_MODE
VERBOSITY=$VERBOSITY
DISTRO=$DISTRO
EXECUTION_MODE=$EXECUTION_MODE
VERBOSITY=$VERBOSITY
DISTRO=$DISTRO
- property-file: "$WORKSPACE/change.properties"
- name: 'engine-verify-{environment-type}-deploy-test-{distro}-city-cloud-master'
current-parameters: false
node-parameters: false
- name: 'engine-verify-{environment-type}-deploy-test-{distro}-city-cloud-master'
current-parameters: false
node-parameters: false
VERBOSITY=$VERBOSITY
DISTRO=$DISTRO
kill-phase-on: FAILURE
VERBOSITY=$VERBOSITY
DISTRO=$DISTRO
kill-phase-on: FAILURE
- job-template:
name: 'engine-verify-packaging-{distro}-{stream}'
- job-template:
name: 'engine-verify-packaging-{distro}-{stream}'
description: 'Name of heat-environment file to use.'
- string:
name: STACK_NAME
description: 'Name of heat-environment file to use.'
- string:
name: STACK_NAME
- default: "nordix-cicd-verify-engine-offline-{distro}-$BUILD_NUMBER"
+ default: "nordix-cicd-verify-engine-online-{distro}-$GERRIT_CHANGE_NUMBER"
description: 'Name of the created stack'
- string:
name: KEYPAIR_NAME
description: 'Name of the created stack'
- string:
name: KEYPAIR_NAME
- default: "keypair-nordix-cicd-verify-offline-engine-{distro}-$BUILD_NUMBER"
+ default: "keypair-nordix-cicd-verify-offline-engine-{distro}-$GERRIT_CHANGE_NUMBER"
description: 'Name of the created keypair'
- string:
name: USE_PREBUILT_DEPLOYMENT_IMAGE
description: 'Name of the created keypair'
- string:
name: USE_PREBUILT_DEPLOYMENT_IMAGE
node-parameters: true
kill-phase-on: FAILURE
abort-all-job: false
node-parameters: true
kill-phase-on: FAILURE
abort-all-job: false
- - 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'
+
+ 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}'
- job-template:
name: 'engine-verify-offline-{phase}-{distro}-{cloud}-{type}-{stream}'
description: 'Name of heat-environment file to use.'
- string:
name: STACK_NAME
description: 'Name of heat-environment file to use.'
- string:
name: STACK_NAME
- default: "nordix-cicd-verify-engine-online-{distro}-$BUILD_NUMBER"
+ default: "nordix-cicd-verify-engine-online-{distro}-$GERRIT_CHANGE_NUMBER"
description: 'Name of the created stack'
- string:
name: KEYPAIR_NAME
description: 'Name of the created stack'
- string:
name: KEYPAIR_NAME
- default: "keypair-nordix-cicd-verify-online-engine-{distro}-$BUILD_NUMBER"
+ default: "keypair-nordix-cicd-verify-online-engine-{distro}-$GERRIT_CHANGE_NUMBER"
description: 'Name of the created keypair'
- string:
name: USE_PREBUILT_DEPLOYMENT_IMAGE
description: 'Name of the created keypair'
- string:
name: USE_PREBUILT_DEPLOYMENT_IMAGE
node-parameters: true
kill-phase-on: FAILURE
abort-all-job: false
node-parameters: true
kill-phase-on: FAILURE
abort-all-job: false
- - 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'
+
+ 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-online-{phase}-{distro}-{cloud}-{type}-{stream}'
- job-template:
name: 'engine-verify-online-{phase}-{distro}-{cloud}-{type}-{stream}'
+if [[ "$DELETE_STACK" != "true" || "$PROVISIONER_TYPE" != "heat" ]]; then
+ echo "Info : Skipping stack delete"
+ exit 0
+fi
+
set +u
source /opt/engine/.venv/bin/activate
set -u
set +u
source /opt/engine/.venv/bin/activate
set -u