Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61271

Disable build status notifications in Bitbucket Server Integration

    • Bitbucket Server Integration 3.2.0

      Please add a way to configure the Atlassian-maintained Bitbucket Server Integration plugin not to report any build status to Bitbucket Server.

      This is similar to JENKINS-49216 / JENKINS-49471 / JENKINS-36755 for Bitbucket Branch Source. There, the solution was to install Skip Notifications Trait Plugin and then add that trait to the branch sources. However, Bitbucket Server Integration does not seem to provide any withNotificationsDisabled method that Skip Notifications Trait could call. nor any other way to disable the notifications.

          [JENKINS-61271] Disable build status notifications in Bitbucket Server Integration

          Hi Kalle, thanks for your suggestion.
          Because this is a core feature of the plugin, we don't have any plans to disable build statuses being sent to Bitbucket Server. If you're able, can you explain a little more about your use case, and why you don't want Jenkins sending build statuses to Bitbucket?
          Thanks,
          Martin

          Martin Henschke added a comment - Hi Kalle, thanks for your suggestion. Because this is a core feature of the plugin, we don't have any plans to disable build statuses being sent to Bitbucket Server. If you're able, can you explain a little more about your use case, and why you don't want Jenkins sending build statuses to Bitbucket? Thanks, Martin

          Kalle Niemitalo added a comment - - edited

          This would be for testing configuration changes or new plugin versions on a separate instance of Jenkins, without affecting whether Bitbucket Server considers pull requests OK to merge.

          Therefore, I would like to have this configurable in the Jenkins user interface (either per project, or for the entire Jenkins instance) or with a system property (for the Jenkins instance), rather than in a Jenkinsfile that would be read by the production Jenkins instance as well.

          Kalle Niemitalo added a comment - - edited This would be for testing configuration changes or new plugin versions on a separate instance of Jenkins, without affecting whether Bitbucket Server considers pull requests OK to merge. Therefore, I would like to have this configurable in the Jenkins user interface (either per project, or for the entire Jenkins instance) or with a system property (for the Jenkins instance), rather than in a Jenkinsfile that would be read by the production Jenkins instance as well.

          Same use case here. Multiple instance (test/preprod) pointing to same jobdsl repository. We would like a way a skip notification.

          Valentin Delaye added a comment - Same use case here. Multiple instance (test/preprod) pointing to same jobdsl repository. We would like a way a skip notification.

          PR #324 aims to implement this. I have not tested it.

          Kalle Niemitalo added a comment - PR #324 aims to implement this. I have not tested it.

          More than happy to manually test if I can download the .hpi somewhere (I guess there is no incremental builds for this plugin ?)

          Valentin Delaye added a comment - More than happy to manually test if I can download the .hpi somewhere (I guess there is no incremental builds for this plugin ?)

          Kalle Niemitalo added a comment - https://ci.jenkins.io/job/Plugins/job/atlassian-bitbucket-server-integration-plugin/view/change-requests/job/PR-324/

          Did some manual test, seems all good. Evidences on the PR comments

          Valentin Delaye added a comment - Did some manual test, seems all good. Evidences on the PR comments

          Kalle Niemitalo added a comment - PR was merged in https://github.com/jenkinsci/atlassian-bitbucket-server-integration-plugin/commit/78b774e7344cfbc19cdff170a3bbe80c87296a6c , not yet released.

          This was released in Bitbucket Server Integration 3.2.0, although not listed in readme.md.

          Comparison of 3.1.0 and 3.2.0

          Kalle Niemitalo added a comment - This was released in Bitbucket Server Integration 3.2.0, although not listed in readme.md. Comparison of 3.1.0 and 3.2.0

            Unassigned Unassigned
            kon Kalle Niemitalo
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: