Commit c2e5d0d6 authored by Robert Knight's avatar Robert Knight

Re-enable QA and prod deployment skips on non-master branches

This check was temporarily removed in the previous commit to test the
changes.
parent a6d0ea34
...@@ -83,11 +83,10 @@ node { ...@@ -83,11 +83,10 @@ node {
} }
} }
// // TESTING if (env.BRANCH_NAME != releaseFromBranch) {
// if (env.BRANCH_NAME != releaseFromBranch) { echo "Skipping QA deployment because ${env.BRANCH_NAME} is not the ${releaseFromBranch} branch"
// echo "Skipping deployment because ${env.BRANCH_NAME} is not the ${releaseFromBranch} branch" return
// return }
// }
milestone() milestone()
...@@ -129,6 +128,11 @@ node { ...@@ -129,6 +128,11 @@ node {
} }
} }
if (env.BRANCH_NAME != releaseFromBranch) {
echo "Skipping prod deployment because ${env.BRANCH_NAME} is not the ${releaseFromBranch} branch"
return
}
milestone() milestone()
stage('Publish') { stage('Publish') {
input(message: "Publish new client release?") input(message: "Publish new client release?")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment