Skip to content

Instantly share code, notes, and snippets.

@klaussilveira
Created September 2, 2011 19:24
Show Gist options
  • Save klaussilveira/1189595 to your computer and use it in GitHub Desktop.
Save klaussilveira/1189595 to your computer and use it in GitHub Desktop.
Branch verification inside Jenkins
#!/bin/bash
if [ "${GIT_BRANCH}" == "origin/master" ]
then
do stuff
else
do other stuff
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment