engine: Enable deployment for new engine verify jobs
[infra/cicd.git] / jjb / engine / engine-verify-jobs / engine-verify-offline-deploy-test.yaml
similarity index 85%
rename from jjb/engine/engine-verify-offline-deploy-test.yaml
rename to jjb/engine/engine-verify-jobs/engine-verify-offline-deploy-test.yaml
index 94acd7d04d0e2fde035bdd359f87234077e374b9..ee94e3abb3c6ab68e0d60417ddf9525bf9559c2d 100644 (file)
 
     properties:
       - logrotate
-      - build-blocker:
-          use-build-blocker: true
-          blocking-jobs:
-            - 'engine-verify-packaging-ubuntu1804.*'
-            - 'engine-verify-online-ubuntu1804.*'
-            - 'engine-verify-offline-ubuntu1804.*'
-          block-level: 'NODE'
+#      - 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
           single-use: True
 
     builders:
-      - shell: |
-          #!/bin/bash
-          cp $OPENRC_FILE /tmp/openrc
+      - 'engine-generate-ssh-keypair-macro'
+      - 'engine-download-artifact-macro'
       - multijob:
-          name: Offline Deployment on {type} instances
+          name: "Offline Deployment on {type} instances"
           condition: SUCCESSFUL
           execution-type: PARALLEL
           projects:
               kill-phase-on: FAILURE
               abort-all-job: true
       - multijob:
-          name: Offline Testing on {type} instances
+          name: "Offline Testing on {type} instances"
           condition: SUCCESSFUL
           execution-type: PARALLEL
           projects:
               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'
 
 - job-template:
     name: 'engine-verify-offline-{phase}-{distro}-{cloud}-{type}-{stream}'
 
     properties:
       - logrotate
-      - build-blocker:
-          use-build-blocker: true
-          blocking-jobs:
-            - 'engine-verify-packaging-ubuntu1804.*'
-            - 'engine-verify-online-ubuntu1804.*'
-            - 'engine-verify-offline-ubuntu1804.*'
-          block-level: 'NODE'
       - throttle:
           max-per-node: 1
           max-total: 3
               password: NORDIX_ARM_TOKEN
       - mask-passwords
       - fix-workspace-permissions
-      - openstack:
-          single-use: True
 
     builders:
-      - shell: |
-          #!/bin/bash
-          cp $OPENRC_FILE /tmp/openrc
-          env
+      - 'engine-{phase}-macro'