cloud-infra: Pre-provisioned slaves and wait before using slave
[infra/cicd.git] / jjb / cloud-infra / cloud-infra-verify-jobs.yaml
index 901ceb6b0e77450fd59041425dff6b5cff605023..100371047fa67a05f28529c9e099e5c65e95e8f3 100644 (file)
@@ -56,6 +56,9 @@
           project: '{project}'
           branch: '{branch}'
       - nordix-gerrit-parameters
+      - label:
+          name: SLAVE_LABEL
+          default: 'cloud-infra-vpod'
       - string:
           name: DISTRO
           default: '{distro}'
           timeout: 120
       - fix-workspace-permissions
       - openstack:
-          instances:
-            - cloud-name: Xerces_EST_ONAP
-              template-name: cloud-infra-vpod
-              count: 1
           single-use: True
 
     scm:
 - builder:
     name: 'cloud-infra-verify-deploy-macro'
     builders:
+      - shell: |
+          #!/bin/bash
+
+          # it takes some time before the OpenStack slave becomes fully operational
+          # so we give it some more time before doing anything
+          sleep 30
       - shell:
           !include-raw: ./cloud-infra-deploy.sh