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

git clone fails with repositories which require http auth

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • git-plugin
    • None
    • 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).

      Attachments

        Issue Links

          Activity

            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)

            lucamilanesio Luca Domenico Milanesio 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)
            tjanke tjanke added a comment -

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

            tjanke tjanke added a comment - Any news on that? Will the branch finally be merged or is there any other solution?
            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
            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

              abayer Andrew Bayer
              larsko larsko
              Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: