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

Unable to automatically discover and build git tags with Jenkins multibranch pipelines and the Git Plugin

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • git-plugin
    • None
    • * Jenkins v2.141
      * Basic Branch Build Strategies Plugin v1.0.1
      * Git plugin v3.9.1
      * Bitbucket Server v5.13.1
      * Webhook to Jenkins for Bitbucket Server v4.4.4
      * Windows Server 2012 R2

    Description

      I configured a multibranch pipeline job to discover and build branches and tags for my git repository hosted in Bitbucket Server. New branches and commits are discovered and built correctly but new tags remain undiscovered. I can force tag discovery if I initiate a manual scan in Jenkins or I click "Trigger Jenkins" in the Webhook to Jenkins for Bitbucket Server UI for my repository.

       

      My Jenkins Configuration

      My Webhook to Jenkins for Bitbucket Server Configuration

       

      Originally, I wanted to use the Bitbucket Branch Source Plugin rather than the Git Plugin but in that case JENKINS-51063 prevents tag discovery and build. Is there a similar issue with the Git Plugin?

      Attachments

        Issue Links

          Activity

            markewaite Mark Waite added a comment -

            alt_jmellor you should probably open a separate bug report that describes how to duplicate the problem you mentioned as:

            With the latest set of updates, multibranch is discovering all branches like it should, but skipping all builds not manually triggered. Critical issue.

            If the only mention of a critical issue is in a comment on another bug report, it is much less likely to receive attention.

            markewaite Mark Waite added a comment - alt_jmellor you should probably open a separate bug report that describes how to duplicate the problem you mentioned as: With the latest set of updates, multibranch is discovering all branches like it should, but skipping all builds not manually triggered. Critical issue. If the only mention of a critical issue is in a comment on another bug report, it is much less likely to receive attention.
            lars_niestrad Lars Niestrad added a comment - - edited

            I got the same problem as iamrewt with the exact same setup. Jenkins does not discover the tags automatically received by the Bitbucket hook. I always have to do a manual or scheduled rescan of the whole multibranch pipeline in order to discover them. I also have the Basic Branch Build Strategies Plugin installed and properly configured. As Ryan already stated it seems there is an issue in the git plugin regarding how it handles the information about a new tag sent by the hook.

            lars_niestrad Lars Niestrad added a comment - - edited I got the same problem as iamrewt with the exact same setup. Jenkins does not discover the tags automatically received by the Bitbucket hook. I always have to do a manual or scheduled rescan of the whole multibranch pipeline in order to discover them. I also have the Basic Branch Build Strategies Plugin installed and properly configured. As Ryan already stated it seems there is an issue in the git plugin regarding how it handles the information about a new tag sent by the hook.
            amidar Amit Dar added a comment -

            any update regarding this issue?

            we are using gitlab branch source plugin, and tag is discovered but build is not activate. we are using the remote file plugin...

             

            amidar Amit Dar added a comment - any update regarding this issue? we are using gitlab branch source plugin, and tag is discovered but build is not activate. we are using the remote file plugin...  
            markewaite Mark Waite added a comment -

            amidar no update. Pull requests are certainly welcomed with tests that show the problem and then implement a fix for the problem.

            markewaite Mark Waite added a comment - amidar no update. Pull requests are certainly welcomed with tests that show the problem and then implement a fix for the problem.

            Any new on this or workaround? It's really an stopper to use Bitbucket plugin for Jenkins... Thanks in advance

            ociotec Emilio González Montaña added a comment - Any new on this or workaround? It's really an stopper to use Bitbucket plugin for Jenkins... Thanks in advance

            People

              Unassigned Unassigned
              iamrewt Ryan Taylor
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: