Status: Open (View Workflow)
Jenkins version 2.164.3, Windows server 2012, Bitbucket Build Status Notifier version 1.4.1, JDK 1.8.0_121, Chrome browser
We are using dynamic shared libraries in our declarative pipeline and using bitbucketStatusNotify() function to send progress of the pipeline back to Bitbucket cloud. Whenever pipeline gets triggered , it sends the same message thrice -
Sending build status INPROGRESS for commit xxxxxxxxxxxxxxxx to BitBucket is done! Sending build status INPROGRESS for commit xxxxxxxxxxxxxxxx to BitBucket is done! Sending build status INPROGRESS for commit xxxxxxxxxxxxxxxx to BitBucket is done!
It does same for successful and failed messages also. Our Jenkinsfile looks like as follows -
@Library('common-jenkins-shared-library') _ library identifier: 'jenkins-shared-library@master', changelog:false, retriever: modernSCM( [$class: 'GitSCMSource', remote: 'URL', credentialsId: 'credntials']) <Groovy function here which is calling the pipeline>
script used is -
bitbucketStatusNotify(buildState: 'INPROGRESS', commitId: 'xxxxxxxxxxxx', repoSlug: 'yyyyyy')
Please suggest if we are missing anything here.
Hello, this happened to scripted pipeline as well, the notification is sent multiple times!