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

CliGitAPIImpl.getRemoteReferences throws exception when there are no tags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-client-plugin
    • None
    • Jenkins ver. 1.609.2
      Job DSL 1.37

      GitClient.getRemoteReferences javadoc says that it should return empty map if no references were found.
      Instead of that it throws the following exception:

      hudson.plugins.git.GitException: unexpected ls-remote output
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteReferences(CliGitAPIImpl.java:2391)

      my method invocation looks like that:
      gitClient.getRemoteReferences(gitUrl, "*", false, true)

            markewaite Mark Waite
            tulinski Tomasz Ulinski
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: