Skip to content

Commit

Permalink
fix: use GIT_LOCAL_BRANCH on Jenkins
Browse files Browse the repository at this point in the history
GIT_BRANCH includes `origin/BRANCH_NAME`
  • Loading branch information
rkonstantinov committed May 22, 2017
1 parent 6b3b9a1 commit 56e7752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verifyConditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function (pluginConfig, config, cb) {
branch = config.env.TRAVIS_BRANCH;
} else {
defaultVerifyConditions = require('@krux/condition-jenkins');
branch = config.env.GIT_BRANCH;
branch = config.env.GIT_LOCAL_BRANCH;
}

// update semantic-release configuration to publish:
Expand Down

0 comments on commit 56e7752

Please sign in to comment.