Latest version throws IllegalArgumentException: Git repository URL 2 is an empty string

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      After upgrading the Git plugin version 4.1.1 to the latest version 4.2.2, following exception is being thrown during a clone:

      java.lang.IllegalArgumentException: Git repository URL 2 is an empty string in job definition. Checkout requires a valid repository URL

      In earlier versions below git configuration was working fine:

      checkout(scm: [$class: 'GitSCM', userRemoteConfigs: [[url: "${gitURL}"], [name: "origin"]], branches: [[name: "${gitTag}"]]])

      Above snippet is taken from a Jenkins Shared Library groovy script.
      Rolling back to git version 4.1.1 works fine. Let me know if you need more information.

            Assignee:
            Mark Waite
            Reporter:
            luc neulens
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: