Disable offline jobs for failing deploy scenarios
[infra/cicd.git] / jjb / cloud-infra / kubernetes-jobs / kubernetes-verify-deploy-test.yaml
index cab7e12d2e4eacd7ad8e1b47bb6cdf37d38c5b52..223597f02bcfed8a473a88aab0752b0f2a7d09f1 100644 (file)
       - 'master':
           branch: 'master'
           deploy-scenario: 'k8-multus-plugins'
+      - '1_20':
+          branch: '1.20'
+          deploy-scenario: 'k8-multus-plugins'
+      - '1_19':
+          branch: '1.19'
+          deploy-scenario: 'k8-multus-plugins'
+      - '1_18':
+          branch: '1.18'
+          deploy-scenario: 'k8-multus-plugins'
       - '1_17':
           branch: '1.17'
           deploy-scenario: 'k8-multus-plugins'
@@ -70,7 +79,7 @@
           provisioner-type: 'heat'
           slave-type: 'jumphost'
           gated-projects: 'infra/stack/kubernetes|infra/installer/kubespray'
-          pdf: "https://gerrit.nordix.org/gitweb?p=infra/provisioner/heat.git;a=blob_plain;f=playbooks/roles/create-stack/files/heat-environment-city-ubuntu1804.yaml"
+          pdf: "https://gerrit.nordix.org/gitweb?p=infra/provisioner/heat.git;a=blob_plain;f=playbooks/roles/create-stack/files/heat-environment-ci-city-ubuntu1804.yaml"
           idf: "https://gerrit.nordix.org/gitweb?p=infra/provisioner/heat.git;a=blob_plain;f=playbooks/roles/create-stack/files/heat-idf.yaml"
 
     distro:
           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: HEAT_STACK_NAME
           default: "nordix-cicd-verify-kubernetes-{environment-type}-{distro}-$GERRIT_CHANGE_NUMBER"
           name: CI_LOOP
           default: "verify"
           description: 'CI loop the job belongs to'
+      - string:
+          name: ROOK_FS
+          default: 'true'
+          description: 'Whether to deploy csi-cephfs storageclass.'
       - project-parameters:
           project: $GERRIT_PROJECT
           branch: '{branch}'
                   # we need to get rid of search domain as well
                   sudo sed -i 's/^search/# search/' /etc/resolv.conf
                 fi
+      - ssh-agent-credentials:
+          users:
+            - 'nordixinfra-nordix-gerrit-ssh'
 
     builders:
       - 'generate-change-metadata-macro'
               kill-phase-on: FAILURE
               abort-all-job: false
               property-file: $WORKSPACE/change.properties
+              enable-condition:
+                !include-raw: '../scripts/k8s-job-enable-condition.gvy'
       - multijob:
           name: "{environment-type} testing on {type} instances"
           condition: SUCCESSFUL
               kill-phase-on: FAILURE
               abort-all-job: false
               property-file: $WORKSPACE/change.properties
+              enable-condition:
+                !include-raw: '../scripts/k8s-job-enable-condition.gvy'
 
     publishers:
       - postbuildscript:
     builders:
       - 'generate-ssh-keypair-macro'
       - 'wait-pkg-mgr-macro'
-      - 'download-artifact-macro'
+      - 'download-{phase}-artifact-macro'
       - '{phase}-macro'