Skip to content

Instantly share code, notes, and snippets.

@brunojppb
Created September 20, 2018 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunojppb/4d3a4bb0e2af237d3eb76d0d52c27d6b to your computer and use it in GitHub Desktop.
Save brunojppb/4d3a4bb0e2af237d3eb76d0d52c27d6b to your computer and use it in GitHub Desktop.
check if master branch is currently set for deployment. fail otherwise.
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