[JIRA] (JENKINS-61678) bitbucket build status notifier stopped working

6 views
Skip to first unread message

alon.hoftman@argus-sec.com (JIRA)

unread,
Mar 25, 2020, 6:00:05 AM3/25/20
to jenkinsc...@googlegroups.com
Alon Hoftman created an issue
 
Jenkins / Bug JENKINS-61678
bitbucket build status notifier stopped working
Issue Type: Bug Bug
Assignee: Antonio Mansilla
Attachments: b1.JPG, b2.JPG
Components: bitbucket-build-status-notifier-plugin
Created: 2020-03-25 09:59
Labels: plugin bitbucket
Priority: Major Major
Reporter: Alon Hoftman

we are using Bitbucket and Jenkins, we have a webhook that starts a Jenkins Job each time a Pull Request is created on bitbucket. Jenkins updates bitbucket back on the build state/status (success, failure or in progress), we use a Jenkins Plugin called bitbucketStatusNotifier. the integration was working perfect till recently it stopped working.

  • The credentials we use remained the same
  • We use the standard syntax of the Plugin commands:
    bitbucketStatusNotify(buildState: 'INPROGRESS' )

bitbucketStatusNotify(buildState: 'SUCCESSFUL', repoSlug: "${Trigger_Repo.split("
/")[1]}", commitId: "${Trigger_Revision}")

Please advise

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

alon.hoftman@argus-sec.com (JIRA)

unread,
Apr 3, 2020, 3:39:03 AM4/3/20
to jenkinsc...@googlegroups.com
Alon Hoftman commented on Bug JENKINS-61678
 
Re: bitbucket build status notifier stopped working

This was resolved and the solution is a bit odd:

A checkout (of even a single file) should occur before bitbucketStatusNotify(), only then the status accepts correctly.

alon.hoftman@argus-sec.com (JIRA)

unread,
Apr 3, 2020, 3:39:03 AM4/3/20
to jenkinsc...@googlegroups.com
Change By: Alon Hoftman
Status: Open Fixed but Unreleased
Resolution: Done
Reply all
Reply to author
Forward
0 new messages