Skip to content

Instantly share code, notes, and snippets.

@abhinavn
Created August 13, 2014 19:01
Show Gist options
  • Select an option

  • Save abhinavn/ff35d976a5fd8217b1c6 to your computer and use it in GitHub Desktop.

Select an option

Save abhinavn/ff35d976a5fd8217b1c6 to your computer and use it in GitHub Desktop.
Jenkins detached branch name for Xcode
buildDisplayName=$(git log -n 1 --pretty=%d HEAD | cut -d / -f 2-3 | awk '{print $1}' | sed s'/.$//')
This is tested for all cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment