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:
      stdout: 
      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/'
      

          [JENKINS-46094] "Checkout over SSH" fails the build since it still uses HTTPS urls

          Elifarley created issue -
          Elifarley made changes -
          Description New: I've configured the option "Checkout over SSH". Yet, the HTTPS url is used, as we can see in the build log:

           
          {code:java}
          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:
          stdout:
          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/'
          {code}
          Liam Newman made changes -
          Link New: This issue is related to JENKINS-46598 [ JENKINS-46598 ]
          Josh Soref made changes -
          Link New: This issue relates to JENKINS-42513 [ JENKINS-42513 ]
          Liam Newman made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Liam Newman made changes -
          Assignee New: Liam Newman [ bitwiseman ]
          Liam Newman made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Liam Newman made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          Liam Newman made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: