Skip to content

Commit

Permalink
Merge pull request #88 from fracmak/feature/service_pull_request
Browse files Browse the repository at this point in the history
Added support for service_pull_request in jenkins
  • Loading branch information
nickmerwin committed Dec 10, 2015
2 parents 64171bf + 199d15e commit d606358
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 @@ -34,6 +34,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 d606358

Please sign in to comment.