engine: Move PDF and IDF parameters to deployment jobs
[infra/cicd.git] / jjb / engine / engine-verify-jobs / engine-verify-online-deploy-test.yaml
index 61d9d18bf233f658adac52f251cbfc9cd0d2a3e1..3118e34da02bfb1213822e099373e2526470cad6 100644 (file)
@@ -25,6 +25,8 @@
     stream:
       - 'master':
           branch: '{stream}'
+          pdf: 'https://gerrit.nordix.org/gitweb?p=infra/hwconfig.git;a=blob_plain;f=pods/nordix-vpod1-pdf.yml'
+          idf: 'https://gerrit.nordix.org/gitweb?p=infra/hwconfig.git;a=blob_plain;f=pods/nordix-vpod1-idf.yml'
 
     phase:
       - deploy
           name: PROVISIONER_TYPE
           default: '{provisioner-type}'
           description: 'Provisioner type to use'
+      - string:
+          name: PDF
+          default: '{pdf}'
+          description: 'PDF file to use for deployment'
+      - string:
+          name: IDF
+          default: '{idf}'
+          description: 'IDF file to use for deployment'
       - string:
           name: HEAT_ENVIRONMENT_FILENAME
           default: 'heat-environment-{cloud}-{distro}.yaml'
           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-online-{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-online-{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
           clean_before: false
 
     builders:
+      - 'engine-wait-pkg-mgr-macro'
       - 'engine-generate-ssh-keypair-macro'
       - 'engine-download-artifact-macro'
       - multijob:
-          name: "Online Deployment on {type} instances"
+          name: "online deployment on {type} instances"
           condition: SUCCESSFUL
           execution-type: PARALLEL
           projects:
               current-parameters: true
               node-parameters: true
               kill-phase-on: FAILURE
-              abort-all-job: true
+              abort-all-job: false
       - multijob:
-          name: "Online Testing on {type} instances"
+          name: "online testing on {type} instances"
           condition: SUCCESSFUL
           execution-type: PARALLEL
           projects:
               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-online-{phase}-{distro}-{cloud}-{type}-{stream}'