Skip to content

Commit

Permalink
Added support for service_pull_request in jenkins using the github pu…
Browse files Browse the repository at this point in the history
…ll request plugin's environment variables
  • Loading branch information
fracmak committed Apr 21, 2015
1 parent d5e1372 commit 199d15e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/convertLcovToCoveralls.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ var convertLcovToCoveralls = function(input, options, cb){
if (options.service_job_id){
postJson.service_job_id = options.service_job_id;
}
if (options.service_pull_request){
postJson.service_pull_request = options.service_pull_request;
}
if (options.repo_token) {
postJson.repo_token = options.repo_token;
}
Expand Down
1 change: 1 addition & 0 deletions lib/getOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var getBaseOptions = function(cb){
if (process.env.JENKINS_URL){
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;
}
Expand Down

0 comments on commit 199d15e

Please sign in to comment.