创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
创建流水线选择代码仓库时无法选到gitlab
配置了github仓库后在流水线运行是报错无法访问:stderr: fatal: unable to access ‘https://github.com/532211847/devops-java-sample.git/’: Failed to connect to github.com port 443: Connection refused
操作系统信息
虚拟机,Centos7.9,4C/8G
Kubernetes版本信息
Client Version: version.Info{Major:“1”, Minor:“18”, GitVersion:“v1.18.2”, GitCommit:“52c56ce7a8272c798dbc29846288d7cd9fbae032”, GitTreeState:“clean”, BuildDate:“2020-04-16T11:56:40Z”, GoVersion:“go1.13.9”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“18”, GitVersion:“v1.18.2”, GitCommit:“52c56ce7a8272c798dbc29846288d7cd9fbae032”, GitTreeState:“clean”, BuildDate:“2020-04-16T11:48:36Z”, GoVersion:“go1.13.9”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
Client: Docker Engine - Community
Version: 19.03.8
API version: 1.40
Go version: go1.12.17
Git commit: afacb8b
Built: Wed Mar 11 01:27:04 2020
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.8
API version: 1.40 (minimum version 1.12)
Go version: go1.12.17
Git commit: afacb8b
Built: Wed Mar 11 01:25:42 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.12
GitCommit: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.18.0
GitCommit: fec3683
KubeSphere版本信息
v3.1.1在线安装。在已有K8s上安装。
问题是什么
The recommended git tool is: NONE using credential github-id Cloning the remote Git repository Cloning repository https://github.com/532211847/devops-java-sample.git > git init /home/jenkins/agent/workspace/hailuo-orgj9g6r/hailuo-org # timeout=10 ERROR: Error cloning remote repo ‘origin’ hudson.plugins.git.GitException: Command “git fetch –tags –progress – https://github.com/532211847/devops-java-sample.git +refs/heads/*:refs/remotes/origin/*” returned status code 128: stdout: stderr: fatal: unable to access ‘https://github.com/532211847/devops-java-sample.git/’: Failed to connect to github.com port 443: Connection refused at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2051) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:573) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:802) at