nemccarthy / stash-pullrequest-builder-plugin

A Jenkins plugin for Building Stash Pull Requests
https://wiki.jenkins-ci.org/display/JENKINS/Stash+pullrequest+builder+plugin
Other
64 stars 130 forks source link

Using /merge ref makes the plugin add build notification to wrong commit #144

Closed jakub-bochenski closed 6 years ago

jakub-bochenski commented 6 years ago

I tried using https://github.com/jenkinsci/stash-pullrequest-builder-plugin#building-the-merge-of-source-branch-into-target-branch

I have the refspec set to origin/pr/${pullRequestId}/merge and I have the "Build only if Stash reports no conflicts" option turned on. screenshot_20180625_104624

When the build finishes the comments appear on the PR, but build result is not recorded screenshot_20180615_143127

I'm guessing the build result is reported against the merged commit sha instead.

jakub-bochenski commented 6 years ago

Nevermind, I've missed https://github.com/jenkinsci/stash-pullrequest-builder-plugin#notify-stash-of-build-result