Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jenkins to Bitbucket integration

Chris September 13, 2018

I've got Jenkins hooked up and building pull requests and merged code lines with Bitbucket.  Something happened and 1 of the 2 "notifications" never get resolved and so my builds never get to a "success" state.  What in the heck am I missing?

In this photo, you can see Jenkins did a pull (the red boxed line) and then later on approved the pull (green check).  You can see our robot system account "approved" the build (the Wall-e icon) and that is the end of it.  The Jenkins pull request will never go green and so the overall build status will never go green either. 

bitbucket.png

Thanks again in advance!

 

1 answer

0 votes
Mikael Sandberg
Community Champion
September 13, 2018

Based on what you are seeing my guess is that your Jenkins job never notified Bitbucket at the end, and that is why it still has the in progress icon. If you go to the build and check the job, did it finish successfully?

Chris September 13, 2018

Yes it did - for example, this is present in my console log:

Sending build status SUCCESSFUL for commit 8c257250bfde643d054e7c247c685ac74c1ac3be to BitBucket is done!
Chris September 13, 2018

Could this be due to the three options of:

  • Notify Build Start
  • Notify Build Finish
  • Only show latest build status
Mikael Sandberg
Community Champion
September 13, 2018

Might be, or it could be something in the plugin that is causing it. I am on Bitbucket server so we are using a different plugin, but I remember when we started using it that not all finish notifications were sent out from Jenkins, so I ended up writing my own script for it. You may want to log a ticket with the Jenkins plugin.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events