我已经成功安装了 Jenkins 和 GitLab,但是这里我面临着 GitLab 和 Jenkins for CI 之间的连接问题。
这里我已经完成了以下步骤。
管理 Jenkins >> 配置系统。
在 Gitlab 部分下,GitLab 连接成功。
我在源代码管理下创建了新工作。我看到下面的问题。
Failed to connect to repository : Error performing command: git ls-remote -h http://10.78.150.58/root/tch-demo.git HEAD.
任何人都可以在这里提供帮助。谢谢。
最佳答案
您至少需要在GitLab中激活该服务。 请遵循以下指南: https://docs.gitlab.com/ee/integration/jenkins.html
https://github.com/jenkinsci/gitlab-plugin#using-it-with-a-job
https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin
希望有帮助。
关于jenkins - GitLab 和 Jenkins 连接问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41888678/