Skylab
Skylab

Reputation: 31

GitLab and Jenkins connection Issue

I have successfully installed Jenkins and GitLab, But here I am facing connection issue between to GitLab and Jenkins for CI.

Here I have completed steps are below.

  1. Manage Jenkins >> Configure System.

    Under Gitlab Section GitLab connections are the success.

  2. I created New Job and under Source Code Management. I see below issue.

    Failed to connect to repository : Error performing command: git ls-remote -h http://10.78.150.58/root/tch-demo.git HEAD.

Any one can help here. thanks.

Upvotes: 2

Views: 19966

Answers (1)

ZeevT
ZeevT

Reputation: 75

You need to activate the service in GitLab at least. Follow these guides: 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

Hope it helps.

Upvotes: 2

Related Questions