Skip to content

Commit

Permalink
test for PR existence
Browse files Browse the repository at this point in the history
  • Loading branch information
Toby Bellwood authored Sep 9, 2020
1 parent 099617c commit a6ab7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
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 a6ab7f2

Please sign in to comment.