bitbucket-push-and-pull-request-plugin icon indicating copy to clipboard operation
bitbucket-push-and-pull-request-plugin copied to clipboard

Building a PR Creation off a New Branch has No Changes (and no email sent on failure)

Open derekatkins opened this issue 4 years ago • 3 comments

Have the plugin and jenkins set up to build off a "PR Create" trigger, with a Freestyle project. Then:

  • Create a new branch
  • Push some changes to the branch
  • Create a new PR from the branch

When Jenkins builds the branch, if you look at the build report it will say "no changes". And if the build fails, it will not send out any email unless you have specific addresses configured (it can't find the developers, culprits, etc).

Note: If you then update the PR (push to the branch again) and have the webhook and plugin configured to build from PR Updates, then the update WILL show the pushed changes and you'll get an email on failure.

derekatkins avatar Nov 18 '21 17:11 derekatkins

With regards to the email, I did get that to work (to the person that created the PR) -- under the Editable Email Notifications Post-build Actions, you need to click Advanced Settings.. to get to the area where you can configure it. In the expanded settings look for Triggers and under there the triggers you set in the global settings. The default is Failure - Any. In there you can Add your other recipients, like Culprits, Build User, Requestor, and Recipient List.

Still, on PR creation, I don't think it sees everyone in the list of commits in the PR.

derekatkins avatar Dec 06 '21 13:12 derekatkins

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 12:04 stale[bot]

I am wondering if this has anything to do with https://github.com/jenkinsci/bitbucket-push-and-pull-request-plugin/issues/249

derekatkins avatar Apr 16 '22 13:04 derekatkins