Skip to content

Commit

Permalink
better Jenkins detection
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmerwin committed Apr 27, 2017
1 parent 2821200 commit b9032a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/getOptions.js
Expand Up @@ -37,12 +37,12 @@ var getBaseOptions = function(cb){
git_message = process.env.DRONE_COMMIT_MESSAGE;
}

if (process.env.JENKINS_URL){
if (process.env.JENKINS_URL || process.env.JENKINS_HOME){
options.service_name = 'jenkins';
options.service_job_id = process.env.BUILD_ID;
options.service_pull_request = process.env.ghprbPullId;
git_commit = process.env.GIT_COMMIT;
git_branch = process.env.GIT_BRANCH;
git_branch = process.env.GIT_BRANCH || process.env.BRANCH_NAME;
}

if (process.env.CIRCLECI){
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -5,7 +5,7 @@
"coverage",
"coveralls"
],
"version": "2.13.0",
"version": "2.13.1",
"bugs": {
"url": "https://github.com/nickmerwin/node-coveralls/issues"
},
Expand Down

0 comments on commit b9032a1

Please sign in to comment.