Send a comment to PR or commit #215
Replies: 1 comment
-
Adding curl calls to the bitbucket api from a pipeline is fairly straightforward. You can use jenkins credentials to pull in your auth against your bitbucket server. The code below does this against bitbucket server, bitbucket cloud has a different api but still can accomplish the same things. ` stage('Start Build') { failure { |
Beta Was this translation helpful? Give feedback.
-
Feature Request
Either as a build or post-build action, it would be nice to have a way to submit a comment into the PR or the commit. This should help expand the information provided in the bitbucket side. There should also be an interface that allows us users to send information from the build (e.g. through env variables) into the comment itself. I am not that familiarized with Jenkins to be able to propose a good solution.
Here is the API that could be used for this
https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/comments
Beta Was this translation helpful? Give feedback.
All reactions