Skip to content

Commit

Permalink
Merge pull request #2190 from amazeeio/testing/jenkinsfile
Browse files Browse the repository at this point in the history
improve branch existence test for skip-openshift label
  • Loading branch information
Toby Bellwood committed Sep 9, 2020
2 parents 099617c + a6ab7f2 commit f008232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Expand Up @@ -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'
Expand Down

0 comments on commit f008232

Please sign in to comment.