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

"Error cloning remote repo 'origin'" with username:password@bitbucket.org URLs

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • Jenkins 1.598
      Git 1.9.5.msysgit.0

      Using the current version of git-client-plugin 1.15.0 and git-plugin 2.3.4 the cloning of a private bitbucket.org repository does not work.
      It used to work with git-client-plugin 1.3.0 and git-plugin 1.5.0.

      I created a new "Free Style" job, entering only a Git SCM with https://username:password@bitbucket.org/user/repository.git as "Repository URL" leaving everything else as default.
      I'm aware of the credentials functionality, but I need to use https://username:password@bitbucket.org/user/repository.git URL syntax, for otherwise certain post build steps will not work.

      This is the output I get:

      Started by user Flavio Donzé
      Building in workspace C:\data\jenkins\workspace\workspace\git_test
      Cloning the remote Git repository
      Cloning repository https://username:password@bitbucket.org/user/repository.git
      > C:/Progra~2/Git/bin/git.exe init C:\data\jenkins\workspace\workspace\git_test # timeout=10
      Fetching upstream changes from https://username@bitbucket.org/user/repository.git
      > C:/Progra~2/Git/bin/git.exe --version # timeout=10
      > C:/Progra~2/Git/bin/git.exe -c core.askpass=true fetch --tags --progress https://username@bitbucket.org/user/repository.git +refs/heads/:refs/remotes/origin/
      ERROR: Error cloning remote repo 'origin'
      ERROR: Error cloning remote repo 'origin'
      Finished: FAILURE

          [JENKINS-26757] "Error cloning remote repo 'origin'" with username:password@bitbucket.org URLs

          Flavio Donzé created issue -
          Mark Waite made changes -
          Link New: This issue duplicates JENKINS-24368 [ JENKINS-24368 ]
          Mark Waite made changes -
          Link New: This issue is duplicated by JENKINS-28460 [ JENKINS-28460 ]
          Mark Waite made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ] New: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Mark Waite made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Link New: This issue is duplicated by JENKINS-32404 [ JENKINS-32404 ]
          Mark Waite made changes -
          Link Original: This issue is duplicated by JENKINS-32404 [ JENKINS-32404 ]
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-32404 [ JENKINS-32404 ]
          Flavio Donzé made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            flaviodonze Flavio Donzé
            Votes:
            4 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: