[英]Multi branch pipeline with bitbucket build status notifier plugin in jenkins
I have a multi branch pipeline job in my jenkins server and I tried to notify the build status using bitbucket cloud build status notifier plugin.我的 jenkins 服务器中有一个多分支管道作业,我尝试使用 bitbucket 云构建状态通知程序插件通知构建状态。
I configured the settings provided in notifier plugin and added the notifier script function in the beginning and end of my Jenkinsfile.我配置了通知程序插件中提供的设置,并在我的 Jenkinsfile 的开头和结尾添加了通知程序脚本功能。
Jenkinsfile:詹金斯档案:
node {
stage 'Build'
bitbucketStatusNotify ( buildState: 'INPROGRESS' )
.......
.......
bitbucketStatusNotify ( buildState: 'SUCESS' )
}
When I run the jenkins build it trigger the notifier script and return done statement in the console.当我运行 jenkins build 时,它会触发通知程序脚本并在控制台中返回 done 语句。
Entering stage Build
Proceeding
[Pipeline] bitbucketStatusNotify
Sending build status INPROGRESS for commit 84bf788cc9ccc8c31df5719da383cab003c97582 to BitBucket is done!
[Pipeline] bat
[master] Running batch script
But the notifier icon is not visible or set in the bitbucket cloud.但是通知程序图标在 bitbucket 云中不可见或未设置。
Is there anything I missed to configure?有什么我错过的配置吗?
documentation/releasenotes at https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+Cloud+Build+Status+Notifier+Plugin https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+Cloud+Build+Status+Notifier+Plugin 上的文档/发布说明
says Using Jenkins 2 pipeline Add the following at the beginning of your Jenkinsfile:说使用 Jenkins 2 管道在 Jenkinsfile 的开头添加以下内容:
bitbucketStatusNotify ( buildState: 'INPROGRESS' )
And add the following at the ending of your Jenkinsfile:并在 Jenkinsfile 的末尾添加以下内容:
bitbucketStatusNotify ( buildState: 'SUCCESSFUL' )
the readme on github is more complete: https://github.com/jenkinsci/bitbucket-build-status-notifier-plugin github上的readme更完整: https : //github.com/jenkinsci/bitbucket-build-status-notifier-plugin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.