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

ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

      After an upgrade, Jenkins can't checkout the source code any more:

      Retriggered by user brian for Gerrit:
      Building in workspace /srv/hudson/jobs/karaage/workspace
      Fetching changes from the remote Git repository
      Fetching upstream changes from https://code.vpac.org/gerrit/karaage
      ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
      [SLOCCount] Skipping results publication since the build is not successful
      Sending e-mails to: brian@vpac.org
      Finished: FAILURE

      I am using the documented configuration: "If this does not work for you set Refspec to refs/changes/:refs/changes/ and 'Branches to build' to $GERRIT_REFSPEC." as at https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger

      As I said, this was working fine until I upgraded Jenkins and plugins.

      Some more debugging information as what exactly failed would be really useful.

          [JENKINS-22186] ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

          Brian May added a comment -

          This appeared to be a bug in the gerrit-trigger plugin, however downgrading the git plugin appears to have resolved it, so I suspect it might be a duplicate of JENKINS-21952.

          Brian May added a comment - This appeared to be a bug in the gerrit-trigger plugin, however downgrading the git plugin appears to have resolved it, so I suspect it might be a duplicate of JENKINS-21952 .

          Mark Waite added a comment -

          The git-plugin 2.1.0 and git-client-plugin 1.7.0 include changes that fix JENKINS-21952. Could you check if this problem is also resolved by those versions of the plugins?

          Mark Waite added a comment - The git-plugin 2.1.0 and git-client-plugin 1.7.0 include changes that fix JENKINS-21952 . Could you check if this problem is also resolved by those versions of the plugins?

          Brian May added a comment -

          Apologies for the delay in responding. It appears to be working fine in the latest version.

          Brian May added a comment - Apologies for the delay in responding. It appears to be working fine in the latest version.

          Brian May added a comment -

          Appears to be ok in latest version.

          Brian May added a comment - Appears to be ok in latest version.

            rsandell rsandell
            penguin_brian Brian May
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: