jx: jx install: Unable to cloning of github repo when behind a proxy

Summary

I try to install jenkins x on a internal kubernetes cluster. The installation process require to clone the Jenkins X cloud environments repo from Github. Unfortunately Github is only available via enterprise proxy and I do not figure out how to get that working

I can define a the HTTP_PROXY environment variable but then all traffic is routed via proxy, means there is no connection to the internal kubernetes cluster anymore.

The git client on my host is configured as follows:

http.https://github.com/.proxy=http://:@proxy.intra:8080
http.https://github.com/.sslbackend=schannel
http.https://github.com/.sslverify=false

I would like to know how I can tell the jx install process to route traffic for github.com via the proxy.

Steps to reproduce the behavior

Run

jx install --provider=kubernetes --on-premise --skip-ingress --git-provider-url=https://scm.intra --git-username=userxyz

Jx version

The output of jx version is:

NAME               VERSION
jx                 1.3.594
Kubernetes cluster v1.11.3
kubectl            v1.11.0
helm client        v2.9.1+g20adb27
helm server        v2.11.0+g2e55dbe
git                git version 2.17.1.windows.2
Operating System   Windows Server 2016 Standard 1607 build 14393
error: Unable to get latest version for github.com/jenkins-x/jx Get https://api.github.com/repos/jenkins-x/jx/releases/latest: dial tcp 192.30.253.116:443: i/o timeout

Kubernetes cluster

What kind of Kubernetes cluster are you using & how did you create it?

Operating system / Environment

Client: Windows Server 2016 Standard 1607 build 14393 Cluster Nodes: RedHat 6

Expected behavior

Specify the usage of proxy server only for github

Actual behavior

Unable to install of jx on-premise with github when github is only available trough enterprise proxy

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

This issue is still valid

Cloning https://github.com/jenkins-x/jenkins-x-boot-config.git @ master to jenkins-x-boot-config
Cloning the Jenkins X versions repo https://github.com/jenkins-x/jenkins-x-versions.git with ref refs/heads/master to C:\Users\papanito\.jx\jenkins-x-versions
error: there was a problem creating a version resolver from versions stream repository https://github.com/jenkins-x/jenkins-x-versions.git and ref master: : failed to clone reference: refs/heads/master: Get https://github.com/jenkins-x/jenkins-x-versions.git/info/refs?service=git-upload-pack: dial tcp x.x.x.x:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.