Chore: Upgrade Jenkins-job-builder to 6.3.0
[releng/global-jjb.git] / jjb / lf-openstack-heat.yaml
1 ---
2 - builder:
3     name: lf-stack-create
4     builders:
5       - inject:
6           properties-content: |
7             OS_CLOUD={openstack-cloud}
8             OS_STACK_NAME=$SILO-$JOB_NAME-$BUILD_NUMBER
9             OS_STACK_TEMPLATE={openstack-heat-template}
10             OS_STACK_TEMPLATE_DIR={openstack-heat-template-dir}
11       - config-file-provider:
12           files:
13             - file-id: clouds-yaml
14               target: "$HOME/.config/openstack/clouds.yaml"
15       - shell: !include-raw: ../shell/openstack-stack-parameters.sh
16       - shell: !include-raw-escape: ../shell/openstack-stack-create.sh
17       - shell: !include-raw-escape: ../shell/openstack-stack-copy-ssh-keys.sh
18
19 - publisher:
20     name: lf-stack-delete
21     publishers:
22       - postbuildscript:
23           builders:
24             - role: BOTH
25               build-on:
26                 - ABORTED
27                 - FAILURE
28                 - SUCCESS
29                 - UNSTABLE
30               build-steps:
31                 - inject:
32                     properties-content: |
33                       OS_CLOUD={openstack-cloud}
34                       OS_STACK_NAME=$SILO-$JOB_NAME-$BUILD_NUMBER
35                 - config-file-provider:
36                     files:
37                       - file-id: clouds-yaml
38                         target: "$HOME/.config/openstack/clouds.yaml"
39                 - shell: !include-raw-escape: ../shell/openstack-stack-delete.sh
40           mark-unstable-if-failed: false