diff options
| author | Merrifield, Jay <[email protected]> | 2015-04-21 13:53:13 -0400 |
|---|---|---|
| committer | Merrifield, Jay <[email protected]> | 2015-04-21 13:53:33 -0400 |
| commit | 199d15ee8b7215e84cb1b133bd913ed718b84da2 (patch) | |
| tree | 3209a16b46368dde6a0dd0baef33accd25a7e4ad /lib | |
| parent | d5e1372bbd79a9fabbceec9624a220f1a8f75348 (diff) | |
| download | node-coveralls-199d15ee8b7215e84cb1b133bd913ed718b84da2.tar.xz node-coveralls-199d15ee8b7215e84cb1b133bd913ed718b84da2.zip | |
Added support for service_pull_request in jenkins using the github pull request plugin's environment variables
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/convertLcovToCoveralls.js | 3 | ||||
| -rw-r--r-- | lib/getOptions.js | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/convertLcovToCoveralls.js b/lib/convertLcovToCoveralls.js index 3f604e1..37add87 100644 --- a/lib/convertLcovToCoveralls.js +++ b/lib/convertLcovToCoveralls.js @@ -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; } diff --git a/lib/getOptions.js b/lib/getOptions.js index eab67f4..95a9577 100644 --- a/lib/getOptions.js +++ b/lib/getOptions.js @@ -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; } |
