Created
September 20, 2018 18:06
-
-
Save brunojppb/4d3a4bb0e2af237d3eb76d0d52c27d6b to your computer and use it in GitHub Desktop.
check if master branch is currently set for deployment. fail otherwise.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ %teamcity.build.branch% = master ]; then exit 0; else echo "ERROR: you are trying to deploy %teamcity.build.branch% branch. Only master is allowed. If you are sure about that, disable this build step"; exit 1; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment