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>"

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • Jenkins 2.45
      Pipeline Multibranch 2.12
      Git 3.0.6-SNAPSHOT (with patches for tags)
      Git Client 2.3.0-SNAPSHOT (with patches for tags)

      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

          [JENKINS-42045] When presented with a tag, Pipeline Multibranch errors with "Could not determine exact tip revision of <tag>"

          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.

          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.

          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

          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.

          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.

          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.

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

              Created:
              Updated:
              Resolved: