Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip origin/* prefix from branch name #301

Merged
merged 4 commits into from Mar 11, 2021
Merged

Conversation

ghengeveld
Copy link
Member

Fixes #300

Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this makes sense!

@yannbf
Copy link
Contributor

yannbf commented Mar 10, 2021

thanks for this @ghengeveld! in my project I believe I need this fix. I tried to use --branch-name=$GIT_LOCAL_BRANCH in my jenkins file and the branch name is still origin/dev.

@ghengeveld ghengeveld changed the title Strip origin/* prefix from branch Strip origin/* prefix from branch name Mar 10, 2021
@ghengeveld ghengeveld merged commit 4fb5adc into next Mar 11, 2021
@ghengeveld ghengeveld deleted the strip-branch-prefix branch March 11, 2021 12:36
@ghengeveld
Copy link
Member Author

Released in v5.7.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jenkins sometimes reports origin/* as branch name
3 participants