From a6ab7f27537ca8f0085343916c8985372c758779 Mon Sep 17 00:00:00 2001 From: Toby Bellwood Date: Wed, 9 Sep 2020 12:30:37 +1000 Subject: [PATCH] test for PR existence --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 93e32d7151..753c053a1e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -79,7 +79,7 @@ node { } stage ('minishift tests') { try { - if (pullRequest.labels.contains("skip-openshift-tests")) { + if (env.CHANGE_ID && pullRequest.labels.contains("skip-openshift-tests")) { sh script: 'echo "PR identified as not needing Openshift testing."', label: "Skipping Openshift testing stage" } else { sh 'make minishift/cleanall || echo'