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

Checkout fails with ERROR: Could not determine exact tip revision of <branch>

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Jenkins v2.225
      Gerrit Code Review plugin v0.4.1
    • Similar Issues:

      Description

      Short explanation

      Creating Multibranch Pipelines using Gerrit as Branch Source through the UI causes the error to occur. The error is that for every new Change Request, the first build (and automatic) occurs with no problem, but if you hit Build Now to build a second, it fails with the error stated. 

      This error doesn't happen if you use Jenkins Job Builder or Job DSL to create the Multibranch pipeline, only when created by the UI.

      Long explanation

      The issue is the same as the others linked (and closed) but happens using the Gerrit Code Review plugin. Seems like a fix was applied for BlueOcean, Github, Jervis, but I suppose this must also be fixed here. 

      Every time I push a new change for review, the first build of that patchset works. But if you hit Build now on that change, the build fails. 

      The error is:

      ERROR: Could not determine exact tip revision of 01/7002801/3

      A picture of the pipeline:

        Attachments

          Issue Links

            Activity

            Hide
            mstory Matt Story added a comment -

            I run into this issue when triggering a multibranch plugin job from another multibranch plugin job with 'build job: ...'.  When I build the job manually it works fine.

            Jenkins v2.202

            GCR plugin version unknown since I don't have 'Manage Jenkins' privs.

            Gerrit v3.0.2

            Show
            mstory Matt Story added a comment - I run into this issue when triggering a multibranch plugin job from another multibranch plugin job with 'build job: ...'.  When I build the job manually it works fine. Jenkins v2.202 GCR plugin version unknown since I don't have 'Manage Jenkins' privs. Gerrit v3.0.2
            Hide
            felipecassiors Felipe Santos added a comment -

            There are two workarounds

            1. Use Jenkins Job Builder to create the Multibranch Pipeline on Jenkins 
                How-to: https://jenkins-job-builder.readthedocs.io/en/latest/project_workflow_multibranch.html#project_multibranch.gerrit_scm
            2. Use Job DSL to create the Multibranch Pipeline on Jenkins

            Show
            felipecassiors Felipe Santos added a comment - There are two workarounds 1. Use Jenkins Job Builder to create the Multibranch Pipeline on Jenkins      How-to:  https://jenkins-job-builder.readthedocs.io/en/latest/project_workflow_multibranch.html#project_multibranch.gerrit_scm 2. Use Job DSL to create the Multibranch Pipeline on Jenkins

              People

              • Assignee:
                lucamilanesio Luca Domenico Milanesio
                Reporter:
                felipecassiors Felipe Santos
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: