Closed raphaelmor closed 7 years ago
The Jenkins user that you use in stash needs to have write permission to the stash repo to add comments.
On Mon, 13 Feb 2017 at 10:53 pm, Raphaël Mor notifications@github.com wrote:
With my configuration, Jenkins doesn't start builds for open PRs.
I added detailed logs and listing the PRs works fine, but when it starts trying to post the comment notifying the start of the build, I have the following issue:
PR-POST-REQUEST:http://stash.xxx.com/rest/api/1.0/projects/xxx/repos/xxx/pull-requests/348/comments with: [BuildStarted XXXXXX] 98411f6f299615304c9ac1394e87f4087ec10f0c into 5d68bf8258f1c7ba118d132b66823e06ee1c0038 Failing to get response from Stash PR POST/rest/api/1.0/projects/xxx/repos/xxx/pull-requests/348/comments
Config :
- Atlassian Bitbucket Server v4.9.1
- Jenkins 2.45
- Stash Pullrequest builder 1.7.0
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nemccarthy/stash-pullrequest-builder-plugin/issues/116, or mute the thread https://github.com/notifications/unsubscribe-auth/AHrBJN2gSMcnGzEj9fqmjDKnF0hrZ8MGks5rcERSgaJpZM4L_HGY .
--
Cheers,
NW
The user is able to post comments :/
Using curl, with the right user, on the same machine that has jenkins, we can post comments :
curl -D- -u xxxx:xxxx -X POST -H "Content-Type: application/json" --data "{\"text\":\"bogus comment\"}" https://stash.xxxxx.com/rest/api/1.0/projects/xxxxxx/repos/xxxxxxx/pull-requests/348/comments
Is there a way to have even more debug info ? like the error returned by stash ? I already have "all" as the log filter for the plugin but no luck.
With my configuration, Jenkins doesn't start builds for open PRs.
I added detailed logs and listing the PRs works fine, but when it starts trying to post the comment notifying the start of the build, I have the following issue:
Config :