git clone via SSH is not working with proxy config

Solution In Progress - Updated -

Issue

  • My build failed due to following error.
# oc get pods
NAME             READY     STATUS      RESTARTS   AGE
test01-1-build   0/1       Error       0          1h

# oc logs -f test01-1-build
The Build "test01-1" is invalid.
spec.source.git.uri: Invalid value: "ssh://<INTERNAL_GIT_URL>/foo/bar.git`": only http:// and https:// GIT protocols are allowed with HTTP or HTTPS proxy set
  • I confirmed that it is possible to git clone ssh://<INTERNAL_GIT_URL>/foo/bar.git via ssh, but why I am getting above error?

Environment

  • OpenShift Container Platform
    • 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content