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

Support for building tags for Bitbucket Server/Cloud

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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)

        Attachments

          Issue Links

            Activity

            Hide
            luispiedra Luis Piedra-Márquez added a comment -
            Show
            luispiedra Luis Piedra-Márquez added a comment - Just submitted a pull request for this: https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/99
            Hide
            eduard_weiss 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

            Show
            eduard_weiss 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
            Hide
            ikostadi Ivaylo Kostadinov added a comment -

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

            Show
            ikostadi Ivaylo Kostadinov added a comment - We could really benefit from this PR being integrated. Any chance that could happen in the near future? Please!
            Hide
            mgaunin 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.

            Show
            mgaunin 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.
            Show
            amuniz Antonio Muñiz added a comment - Fixed by https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/120
            Hide
            arnaudeprez 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 ?

            Show
            arnaudeprez 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 ?
            Hide
            nfalco 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)

            Show
            nfalco 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)
            Hide
            arnaudeprez Arnaud Deprez added a comment - - edited

            Hi Nikolas Falco,

            Thanks for your fast reply!

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

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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: