nishio-dens / bitbucket-pullrequest-builder-plugin

Bitbucket Pull Request Builder Plugin for Jenkins
Other
125 stars 145 forks source link

PR linked to wrong Jenkins jobs #201

Closed znerd closed 5 years ago

znerd commented 5 years ago

Bug report: PRs are (sometimes) linked to an incorrect Jenkins job build.

We have put PR validation in place using Jenkins (LTS 2.164.3) and the Bitbucket PR Builder plugin (v1.4.30). Each PR is checked by a number of different Jenkins jobs.

What happens, however, is that the PR links to the incorrect Jenkins build.

Example For example, we have a PR 109. On that PR, there is a note on the builds saying “1 of 3 passed”: Screen Shot 2019-06-13 at 08 34 20

When clicking on that, a popup shows up with references to 3 Jenkins builds: Screen Shot 2019-06-13 at 08 35 28

The links have the following targets:

  1. “XXXXX Jenkins” → https://jenkins.xxxxx.com/
  2. “PR: Validate basics” → https://jenkins.xxxxx.com/job/PR-Validate-Basics/166/
  3. “XXXXX Jenkins” → https://jenkins.xxxxx.com/job/Full-Build/job/release%252FR1.3/8/

Note that none of the 3 links is appropriate:

  1. The first one does not link to a build job at all.
  2. The second one links to the proper Pipeline job, but the incorrect build.
  3. The third one links to the proper Multibranch Pipeline job, but to an incorrect branch.
znerd commented 5 years ago

Cannot reproduce the issue anymore. Closing the issue.