amuniz / bitbucket-branch-source-plugin

5 stars 2 forks source link

BRANCH_NAME variable available in builds? #8

Open cromwellryan opened 7 years ago

cromwellryan commented 7 years ago

I've looked through the documentation as much as I could find, but I don't find mention of any branch name information available for use in a Jenksinfile. We have steps we only want to do for specific branches.

Thanks a ton for this plugin and all of your hard work!

James-Newman commented 6 years ago

A lot is available via the environment. The branchname however is not. It is returned as part of the scm checkout process though

scmVars = checkout scm scmVars.GIT_BRANCH