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

Password removed from repository URL during polling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • None
    • git 2.3.5
      git client 1.17.1

      To build content of private repository, the git url in job is configured as https://user:apitoken@github.com/group/repo. The cloning and form validation seems to be happy with this, but git polling seems to remove the api token and fail to access the repository:

      > git ls-remote -h https://user@github.com/group/repo # timeout=10
      FATAL: hudson.plugins.git.GitException: Command "git ls-remote -h https://user@github.com/group/repo" returned status code 128:
      stdout: 
      stderr: error: The requested URL returned error: 403 while accessing https://user@github.com/group/repo/info/refs
      
      fatal: HTTP request failed
      
      

            Unassigned Unassigned
            olivergondza Oliver Gondža
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: