Disable offline jobs for failing deploy scenarios 85/13685/2
authornauman <nauman.yaseen@est.tech>
Fri, 20 May 2022 01:47:46 +0000 (01:47 +0000)
committernauman <nauman.yaseen@est.tech>
Fri, 20 May 2022 01:50:11 +0000 (01:50 +0000)
Change-Id: I40fbf28a6bc7bf41c487e11fd03f3b9d78c898a6

jjb/cloud-infra/kubernetes-jobs/kubernetes-verify-deploy-test.yaml
jjb/cloud-infra/scripts/k8s-job-enable-condition.gvy [new file with mode: 0644]

index 0262fee534b421031997f070a3e9b6f1e4cc2ac3..223597f02bcfed8a473a88aab0752b0f2a7d09f1 100644 (file)
               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:
diff --git a/jjb/cloud-infra/scripts/k8s-job-enable-condition.gvy b/jjb/cloud-infra/scripts/k8s-job-enable-condition.gvy
new file mode 100644 (file)
index 0000000..e865965
--- /dev/null
@@ -0,0 +1 @@
+!('{environment-type}' == 'offline' && "${{DEPLOY_SCENARIO}}" in ['k8-eno-ovs', 'k8-calico-istio', 'k8-calico-eiffel', 'k8-calico-spinnaker'])
\ No newline at end of file