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

Support for building tags for Bitbucket Server/Cloud

      Add support to the Bitbucket plugin so that tags can be automatically discovered/built. It would be useful if a filter could be specified to only build new tags (to stop mass-building occurring when an existing project is added to a new Jenkins).

      See similar request for the GitHub plugin (JENKINS-34395) and Git plugin (JENKINS-46207)

          [JENKINS-47254] Support for building tags for Bitbucket Server/Cloud

          Luis Piedra-Márquez added a comment - Just submitted a pull request for this: https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/99

          Eduard Weiss added a comment -

          Hi,

          I implemented this feature for Bitbucket too.

          Here is the PR: https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/113

          Eduard Weiss added a comment - Hi, I implemented this feature for Bitbucket too. Here is the PR: https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/113

          We could really benefit from this PR being integrated. Any chance that could happen in the near future? Please!

          Ivaylo Kostadinov added a comment - We could really benefit from this PR being integrated. Any chance that could happen in the near future? Please!

          Mikael Gaunin added a comment -

          eduard_weiss, can you review Antonio's feedback on your PR #113 please?

          It will be nice if we succeed to have this feature ready.

          Thanks for your involvement.

          Mikael Gaunin added a comment - eduard_weiss , can you review Antonio's feedback on your  PR #113 please? It will be nice if we succeed to have this feature ready. Thanks for your involvement.

          Antonio Muñiz added a comment - Fixed by https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/120

          Arnaud Deprez added a comment - - edited

          Hi,

          Thanks to this new feature, I can discover tags and trigger build manually from Jenkins.

          Thanks for that!

          However, Jenkins does not trigger build when a new tag is created. It even does not register a new build for it unless I'm running the whole Organization scan.

          Doesn't it suppose to bring this feature ?

          Arnaud Deprez added a comment - - edited Hi, Thanks to this new feature, I can discover tags and trigger build manually from Jenkins. Thanks for that! However, Jenkins does not trigger build when a new tag is created. It even does not register a new build for it unless I'm running the whole Organization scan. Doesn't it suppose to bring this feature ?

          Nikolas Falco added a comment -

          Jenkins does not handle notify of kind tag created because actually in the com.cloudbees.jenkins.plugins.bitbucket.hooks.PushHookProcessor Line 165 it create always a notify of kind branch. It should check if change.getNew().getType() is valued with branch or tag and create the appropriate SCMHead event (BitbucketTagSCMHead instead of BranchSCMHead)

          Nikolas Falco added a comment - Jenkins does not handle notify of kind tag created because actually in the com.cloudbees.jenkins.plugins.bitbucket.hooks.PushHookProcessor Line 165 it create always a notify of kind branch. It should check if change.getNew().getType() is valued with branch or tag and create the appropriate SCMHead event (BitbucketTagSCMHead instead of BranchSCMHead)

          Arnaud Deprez added a comment - - edited

          Hi nfalco,

          Thanks for your fast reply!

          For other, I just link the issue with the one you just created.

          Arnaud Deprez added a comment - - edited Hi nfalco , Thanks for your fast reply! For other, I just link the issue with the one you just created.

            Unassigned Unassigned
            chris5287 Chris Stylianou
            Votes:
            12 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved: