Skip to content

Commit

Permalink
fix: add GIT_LOCAL_BRANCH to find branch name on Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Feb 13, 2018
1 parent 00bb577 commit 87b9fbc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/jenkins.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ module.exports = {
return {
service: 'jenkins',
commit: process.env.ghprbActualCommit || process.env.GIT_COMMIT || git.head(),
branch: process.env.ghprbSourceBranch || process.env.GIT_BRANCH || process.env.BRANCH_NAME,
branch:
process.env.ghprbSourceBranch ||
process.env.GIT_LOCAL_BRANCH ||
process.env.GIT_BRANCH ||
process.env.BRANCH_NAME,
build: process.env.BUILD_NUMBER,
buildUrl: process.env.BUILD_URL,
root: process.env.WORKSPACE,
Expand Down

0 comments on commit 87b9fbc

Please sign in to comment.