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

Multibranch pipeline failing at Checkout SCM step (unable to resolve tag)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Major
    • git-client-plugin
    • Jenkins ver. 2.60.3
      Latest version for installed plugins
      Debian 8 / 64bit
      openjdk-8-jdk + openjdk-8-jre 8u102-b14.1-1~bpo8+1

    Description

      Hello,

      I'm facing a strange issue since the last upgrade (when Blue Ocean was released in 1.2.0).

      I tried to downgrade almost everything (both jenkins to 2.60.2 and every plugins who might be related to git/scm). But I couldn't make it work again...

      The issue occurs whenever I try to launch a build or "Scan Multibranch Pipeline Now".

      Here is the errog log I get everytime :

      Démarré par l'utilisateur segdim
       > git rev-parse --is-inside-work-tree # timeout=10
      Setting origin to https://git_url/ORG/repo.git
       > git config remote.origin.url https://git_url/ORG/repo.git # timeout=10
      Fetching origin...
      Fetching upstream changes from origin
       > git --version # timeout=10
       > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/*
      hudson.plugins.git.GitException: Command "git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/*" returned status code 1:
      stdout:
      stderr: error: unable to resolve reference refs/tags/20170825-fc97b4e: Argument invalide
      Depuis https://git_url/ORG/repo.git
       ! [nouvelle étiquette] 20170825-fc97b4e -> 20170825-fc97b4e  (impossible de mettre à jour la référence locale)
      
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1924)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1643)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:352)
          at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:344)
          at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:358)
          at jenkins.scm.api.SCMSource.fetch(SCMSource.java:564)
          at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:95)
          at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:263)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:405)
      Finished: FAILURE
      

      I also tried to run manually the git commands SCM Checkout Jenkins is using :

      git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/*
      

      It works fine for me and the tag 20170825-fc97b4e does exist inside my repository.

      I tried on multiple branches and other repositories and I got the same result.

      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            segdim Dimitri SEGARD
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: