Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Added support for jenkins github pull request builder environment variables #24

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions codecov/__init__.py
Expand Up @@ -133,10 +133,11 @@ def main(*argv):
# -------
if os.getenv('JENKINS_URL'):
# https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project
defaults.update(dict(branch=os.getenv('GIT_BRANCH'),
defaults.update(dict(branch=os.getenv('ghprbSourceBranch') or os.getenv('GIT_BRANCH'),
service='jenkins',
commit=os.getenv('GIT_COMMIT'),
commit=os.getenv('ghprbActualCommit') or os.getenv('GIT_COMMIT'),
build=os.getenv('BUILD_NUMBER'),
pull_request=os.getenv('ghprbPullId'),
root=os.getenv('WORKSPACE'),
build_url=os.getenv('BUILD_URL')))
# ---------
Expand Down