greenkeeperio / greenkeeper-lockfile

:lock: Your lockfile, up to date, all the time
https://greenkeeper.io
182 stars 73 forks source link

Fix Jenkins Multibranch pipeline jobs #165

Closed sgtcoolguy closed 6 years ago

sgtcoolguy commented 6 years ago

Consult env vars in order: CHANGE_TARGET, CHANGE_BRANCH, BRANCH_NAME, GIT_BRANCH to resolve original branch.

sgtcoolguy commented 6 years ago

For reference:

I think the typical config nowadays would be to use a multi branch pipeline job, so the right choice would be CHANGE_TARGET there. For older legacy builds using Github Pull request builder, my best guess is that ghprbTargetBranch would be the value that should actually be used: https://wiki.jenkins.io/display/JENKINS/GitHub+pull+request+builder+plugin#GitHubpullrequestbuilderplugin-EnvironmentVariables

greenkeeperio-bot commented 6 years ago

:tada: This PR is included in version 2.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: