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

The key value for the build notification is an UUID which couldn't be filter in required build feature of Bitbucket

      There is a feature in Bitbucket that could filter the builds with key values.

      https://confluence.atlassian.com/bitbucketserver/checks-for-merging-pull-requests-776640039.html

      Environment:

      Plugin version

      Jenkins version 2.405

      we noticed the key value is Hash ID. Then we couldn't use that to filter different branches.

      BitbucketBuildStatusNotifications.java#L201

      BitbucketBuildStatus.java#L95

      Is it possible for this plugin to make the key value more meaningful and could be filtered by the Bitbucket required build feature?

       

       

       

          [JENKINS-72780] The key value for the build notification is an UUID which couldn't be filter in required build feature of Bitbucket

          Jonathan Delizy added a comment - In current version (934.3.1), the key appears to be build from job name which is OK ( https://github.com/jenkinsci/bitbucket-branch-source-plugin/blob/388049e52024761638ac1fd22fc5bb875e73ea75/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/impl/notifier/BitbucketBuildStatusNotifications.java#L269C27-L269C38 ) but converted to a MD5 digest ( https://github.com/jenkinsci/bitbucket-branch-source-plugin/blob/388049e52024761638ac1fd22fc5bb875e73ea75/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/api/BitbucketBuildStatus.java#L121 ). From my understanding of the API documentation , this should be a simple string.

            nfalco Nikolas Falco
            qiaofeiz qiaofei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: