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

git clone fails with repositories which require http auth

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All

      Description

      Creating a new job with a repo which is served over https and requires http
      authentication fails, hudson just sits there and waits for a password to be
      entered on the controlling terminal.

      I have a setup where the authentication credentials are supplied in a .netrc.
      This worked until I upgraded the git plugin (nothing else changed)

      This does not affect jobs where the repo has been cloned already and is just
      updated.

      It works if I clone the repo manually on the machine into the workspace
      directory and then run the job (configuration of the job not touched).

        Issue Links

          Activity

          Hide
          lucamilanesio lucamilanesio added a comment -

          I can fix it into my GITHub branch:
          git://github.com/lucamilanesio/Hudson-GIT-plugin.git

          Who is authorised to merge into the GIT master branch ?
          (after review)

          Show
          lucamilanesio lucamilanesio added a comment - I can fix it into my GITHub branch: git://github.com/lucamilanesio/Hudson-GIT-plugin.git Who is authorised to merge into the GIT master branch ? (after review)
          Hide
          tjanke tjanke added a comment -

          Any news on that? Will the branch finally be merged or is there any other solution?

          Show
          tjanke tjanke added a comment - Any news on that? Will the branch finally be merged or is there any other solution?
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_git-plugin #93
          [FIXED JENKINS-3807] Fixed bug where password is excluded from the URL. Replace usages of toString() in plugin with toPrivateString() so the password is not elided.

          Andrew Bayer :
          Files :

          • src/main/resources/hudson/plugins/git/GitSCM/config.jelly
          • src/main/java/hudson/plugins/git/GitAPI.java
          • src/main/java/hudson/plugins/git/GitSCM.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_git-plugin #93 [FIXED JENKINS-3807] Fixed bug where password is excluded from the URL. Replace usages of toString() in plugin with toPrivateString() so the password is not elided. Andrew Bayer : Files : src/main/resources/hudson/plugins/git/GitSCM/config.jelly src/main/java/hudson/plugins/git/GitAPI.java src/main/java/hudson/plugins/git/GitSCM.java

            People

            • Assignee:
              abayer abayer
              Reporter:
              larsko larsko
            • Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: