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

Git clone fails if username & password embedded in VSOnline, GitHub, or Bitbucket URL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • git-client-plugin
    • None
    • Git plugin 3.0.1
      Git client plugin 2.2.0

      If I embed my username and personal access token into a Visual Studio Online URL, GitHub URL, or BitBucket URL, I can clone that URL from command line git on my Ubuntu Linux computer, whether logged in as myself or as an entirely different user.

      If I use the same URL in a Jenkins job, without specifying any other credentials, the clone fails in the Jenkins job with authorization denied. It also fails with JGit, though the error message is that authentication was not provided.

      Work around: If I create a credential with that same user name and personal access token, and use that credential in a job which does not include the username or password in the URL, the clone succeeds.

            Unassigned Unassigned
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: