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

"Checkout over SSH" fails the build since it still uses HTTPS urls


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Jenkins ver. 2.60.2
      Cloudbees BitBucket Branch Source Plugin v. 2.2.3

      I've configured the option "Checkout over SSH". Yet, the HTTPS url is used, as we can see in the build log:


      Branch indexing
      Checking out git https://bitbucket.org/my-org/my-app-android.git into /var/jenkins_home/workspace/-app-android_avoid-os-clone-3HZZVSGHH7HARS2F37PQWWMN7OXA3M6XXBAQKXVEMDJZEPDIH6VQ@script to read Jenkinsfile
      Cloning the remote Git repository
      Cloning with configured refspecs honoured and without tags
      Cloning repository https://bitbucket.org/my-org/my-app-android.git
      > git init /var/jenkins_home/workspace/-app-android_avoid-os-clone-3HZZVSGHH7HARS2F37PQWWMN7OXA3M6XXBAQKXVEMDJZEPDIH6VQ@script # timeout=10
      Fetching upstream changes from https://bitbucket.org/my-org/my-app-android.git
      > git -version # timeout=10
      > git fetch -no-tags -progress https://bitbucket.org/my-org/my-app-android.git +refs/heads/avoid-os-clone:refs/remotes/origin/avoid-os-clone
      ERROR: Error cloning remote repo 'origin'
      hudson.plugins.git.GitException: Command "git fetch -no-tags -progress https://bitbucket.org/my-org/my-app-android.git +refs/heads/avoid-os-clone:refs/remotes/origin/avoid-os-clone" returned status code 128:
      stderr: remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.
      fatal: Authentication failed for 'https://bitbucket.org/my-org/my-app-android.git/'

            bitwiseman Liam Newman
            elifarley Elifarley
            3 Vote for this issue
            13 Start watching this issue