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

When presented with a tag, Pipeline Multibranch errors with "Could not determine exact tip revision of <tag>"

    XMLWordPrintable

Details

    Description

      When presented with a tag instead of a branch, Pipeline Multibranch errors the pipeline with:
      "Could not determine exact tip revision of <tag name here>"

      The following PRs are required to reproduce:
      https://github.com/jenkinsci/git-plugin/pull/407
      https://github.com/jenkinsci/git-client-plugin/pull/234

      To reproduce:
      Enable "Show tags in SCMSource" in the "Git Plugin" global config
      Create a multibranch pipeline pointing at a git repo with tags
      Run the pipeline for a tag

      Attachments

        Issue Links

          Activity

            Note that this works for the Multibranch Project plugin - this is a blocker for us migrating away from that (which seems less supported these days) and towards pipelines.

            evildeece Alastair D'Silva added a comment - Note that this works for the Multibranch Project plugin - this is a blocker for us migrating away from that (which seems less supported these days) and towards pipelines.
            evildeece Alastair D'Silva added a comment - fixed by https://github.com/jenkinsci/workflow-multibranch-plugin/pull/55

            evildeece so how your PR against the Git plugin implements tag support is not correct, as a result I think you have downstream issues. If you were implementing tag support correctly then this should not be an issue

            stephenconnolly Stephen Connolly added a comment - evildeece so how your PR against the Git plugin implements tag support is not correct, as a result I think you have downstream issues. If you were implementing tag support correctly then this should not be an issue

            Thanks for the review, I'll investigate on Monday when I get back to work.

            evildeece Alastair D'Silva added a comment - Thanks for the review, I'll investigate on Monday when I get back to work.

            I've reworked https://github.com/jenkinsci/git-plugin/pull/407 to present an implementation of TagSCMHead for each tag, and the problem persists.

            I'll clean up my work on the git-plugin and resubmit to https://github.com/jenkinsci/git-plugin/pull/407 shortly.

            evildeece Alastair D'Silva added a comment - I've reworked https://github.com/jenkinsci/git-plugin/pull/407 to present an implementation of TagSCMHead for each tag, and the problem persists. I'll clean up my work on the git-plugin and resubmit to https://github.com/jenkinsci/git-plugin/pull/407 shortly.

            People

              stephenconnolly Stephen Connolly
              evildeece Alastair D'Silva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: