Skip to content

Commit 4f95da1

Browse files
committed
feat: use GIT_BRANCH for Jenkins, close #4
1 parent 9e1dd92 commit 4f95da1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ function getBranch (pathToRepo) {
1717
'CIRCLE_BRANCH',
1818
'TRAVIS_BRANCH',
1919
'BUILDKITE_BRANCH',
20-
'CI_BRANCH'
20+
'CI_BRANCH',
21+
'GIT_BRANCH' // on Jenkins
2122
]
2223
const ciBranch = firstFoundValue(ciNames, process.env)
2324
if (ciBranch) {

0 commit comments

Comments
 (0)