Created
August 27, 2019 10:05
-
-
Save tkrisztian95/0143a728b93ad3fe1130a680a146c109 to your computer and use it in GitHub Desktop.
Jenkins set GIT_BRANCH_LOCAL env without origin
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
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