CHANGE_BRANCH, mentioned in
was working at some point in the recent past. It has now reverted to being equal to BRANCH_NAME which in the case of a pull request is PR-n JENKINS-41104
Expected behaviour, according to
, is that when a PR is being built, CHANGE_BRANCH returns the source branch. JENKINS-41104
CHANGE_TARGET is returning correctly (with the target branch), so it does appear the plugin is aware of builds from pull requests.