Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-45902

Docker build strategy fails for SSH cloned public GitHub repositories

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • 4.17
    • oc
    • None
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      oc new-app . --strategy=docker
      

      fails to build the source code which is cloned from a public GitHub repository. Whereas if I clone the same repository using the HTTPS URI the build is successful.

      Version-Release number of selected component (if applicable):

      How reproducible:

      Steps to Reproduce:
      1. Clone a public GitHub repository using the SSH URI i.e

      git@github.com:<username>/<repository>.git
      

      2. Execute the oc new-app --strategy=docker command:

      oc new-app <cloned-repo-destination> --strategy=docker -v=10
      

      3. Check the logs of the BuildConfig created:

      oc logs -f buildconfig/<name>
      

      Actual results:

      Cloning "git@github.com:<username>/<repository>.git" ...
      error: Host key verification failed.
      fatal: Could not read from remote repository.Please make sure you have the correct access rights
      and the repository exists.  
      

      Expected results:

      Build should be successful
      

      Additional info:

              aos-workloads-staff Workloads Team Bot Account
              rh-ee-atshinde Atharva Shinde
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: