Post build actions (e.g. comments) using bitbucket branch source plugin

173 views
Skip to first unread message

Jamie Johnson

unread,
Apr 3, 2020, 10:42:50 AM4/3/20
to Jenkins Users
I am trying to setup a multi branch pipeline and want to be able to support custom comments such as was possible in the to bitbucket.  This was possible using the stash pull request builder.  What is the best way to accomplish this? 

Yeikel

unread,
Apr 3, 2020, 11:00:17 AM4/3/20
to jenkins...@googlegroups.com
I don't know if it is best way but there is a rest API in bitbucket[1] to support this activity and more. 


On Fri, Apr 3, 2020, 10:42 AM Jamie Johnson <jej...@gmail.com> wrote:
I am trying to setup a multi branch pipeline and want to be able to support custom comments such as was possible in the to bitbucket.  This was possible using the stash pull request builder.  What is the best way to accomplish this? 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/68a451f3-17a4-4716-a18c-a88f18872638%40googlegroups.com.

Jamie Johnson

unread,
Apr 3, 2020, 11:35:36 AM4/3/20
to Jenkins Users
Thanks for the suggestion, how would I invoke this as I don't see a way to do a post build action currently?


On Friday, April 3, 2020 at 11:00:17 AM UTC-4, Yeikel wrote:
I don't know if it is best way but there is a rest API in bitbucket[1] to support this activity and more. 


On Fri, Apr 3, 2020, 10:42 AM Jamie Johnson <jej...@gmail.com> wrote:
I am trying to setup a multi branch pipeline and want to be able to support custom comments such as was possible in the to bitbucket.  This was possible using the stash pull request builder.  What is the best way to accomplish this? 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins...@googlegroups.com.

Yeikel

unread,
Apr 3, 2020, 11:41:55 AM4/3/20
to jenkins...@googlegroups.com
If you are using a multi branch pipeline, you can add one last step at the end to do that activity.

stage('Add pull request comment') {
            steps {
               /// API call
            }
        }

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e0e221c4-c584-4194-9434-42ba5ca7ed3d%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages