Skip to content

Instantly share code, notes, and snippets.

@tkrisztian95
Created August 27, 2019 10:05
Show Gist options
  • Save tkrisztian95/0143a728b93ad3fe1130a680a146c109 to your computer and use it in GitHub Desktop.
Save tkrisztian95/0143a728b93ad3fe1130a680a146c109 to your computer and use it in GitHub Desktop.
Jenkins set GIT_BRANCH_LOCAL env without origin
git_branch_local=$(echo $GIT_BRANCH | sed -e "s|origin/||g")
GIT_BRANCH_LOCAL=$git_branch_local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment