Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47617

CHANGE_BRANCH no longer reporting branch name, but instead PR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • None
    • Jenkins 2.90 on CentOS 7
      bitbucket-branch-source-plugin 2.2.7
      bitbucket server 5.4.1
      git 2.9.5
    • 2.2.13

      CHANGE_BRANCH, mentioned in JENKINS-41104 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

      Expected behaviour, according to JENKINS-41104, is that when a PR is being built, CHANGE_BRANCH returns the source branch.

      CHANGE_TARGET is returning correctly (with the target branch), so it does appear the plugin is aware of builds from pull requests.

       

            jetersen Joseph Petersen
            therealwaldo Will Freeman
            Votes:
            27 Vote for this issue
            Watchers:
            29 Start watching this issue

              Created:
              Updated:
              Resolved: