Plugin Information |
---|
View Bitbucket Server Notifier on the plugin site for more information. |
Overview
This plugin notifies an Atlassian Bitbucket Server (formerly known as Stash) instance of Jenkins builds in progress and of their results.
The build results will show up in the commit or pull request list in Bitbucket and provide immediate and easy to scan feedback about a commit.
It is possible to navigate from build result information in Bitbucket directly to the build in question.
The plugin can be configured on a per-job basis, globally for all jobs or both to minimize the configuration overhead.
Usage
A detailed description can be found in the plugin's readme.
7 Comments
Unknown User (davidkarlsen)
Could you add release notes please?
Unknown User (rudy_mu)
I've problem if build is succesful it's still showing the icon that build is in progress. But if build is failed then it show the correct icon (the red one).
I'm using Bitbucket Server 5.8.1, Stash Notifier Plugin 1.13 and Jenkins 2.104
would really appreciate if you can help me to solve this.
Thanks in advanced
Unknown User (cansuerkal)
Hello Unknown User (rudy_mu) ,
Could you help me that how did you do Bitbucket configuration ?
I installed Stash Notifier Plugin to Jenkins side but I haven't found anything about Bitbucket Server side configuration.
Thanks.
Unknown User (rudy_mu)
Actually it is standard configuration. I run this command in Jenkins Pipeline. It shows the correct icon if there is an error but if it succesful it just shows progress icon
post {
success {
cleanWs()
script {
if (stringName != "others")
{
echo "success"
notifyBitbucket commitSha1: '', considerUnstableAsSuccess: false, credentialsId: 'XX', disableInprogressNotification: true, ignoreUnverifiedSSLPeer: false, includeBuildNumberInKey: true, prependParentProjectKey: false, projectKey: '', stashServerBaseUrl: "${stashURL}"
}
}
}
Unknown User (rudy_mu)
And in jenkins
Unknown User (rudy_mu)
I found the reason why. It is because currentBuild.result. Now it works fine
Unknown User (francescobabboni)
Hi everybody.
I need your help regarding the usage of Bitbucket (Stash) Notifier Plugin inside my Jenkins items, with Jenkins SSH Global Credentials.
I tried both these procedures to let the plugin working, without any success
1) modify my Jenkinsfile for the pipeline job, at the end of the Build stage
post {
always {
notifyBitbucket commitSha1: '', considerUnstableAsSuccess: false, credentialsId: $(THE_ID_FOR_SSH_JENKINS_CREDENTIALS'), disableInprogressNotification: false, ignoreUnverifiedSSLPeer: false, includeBuildNumberInKey: true, prependParentProjectKey: false, projectKey: '', stashServerBaseUrl: $(THE_BASE_URL_BEFORE_THE_PROJECT_FOLDER)
}
}
2) modify my groovy file to generate Job DSL:
pipelineJob("myJob")
{
publishers {
stashNotifier {
credentialsId($(THE_ID_FOR_SSH_JENKINS_CREDENTIALS')
serverBaseUrl($(THE_BASE_URL_BEFORE_THE_PROJECT_FOLDER)
}
}
}
In the Console Output, I received this error
[Pipeline] notifyBitbucket
Could you please help me understanding what is the proper usage of the Jenkinsfile (notifyBitbucket) and/or Groovy Job DSL (stashNotifier) notation to let Jenkins use the user with SSH Credentials?
Consider that this credentials has been set to have Read/Write access key rights inside both Project and Repository options inside internal Bitbucket project/repository.
Looking for your kind reply
Best Regards
Francesco