Integrate with GitLab

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Integrate with GitLab

Sverre Moe-2
What is the preferred way to Integrate both Jenkins and GitLab?
What is the best way to do it?

GitLab has deploy keys. I have created deploy keys for all 30 Jenkins build agents.
I have added these deploy keys to each project. We only got 8 projects migrated from Gitolite at the moment. Adding all the deploy keys to 400+ projects is not a good way.

The GitLab Jenkins Integration documentation mentions creating a Jenkins user in GitLab.
https://docs.gitlab.com/ee/integration/jenkins.html
Then that user could be added to each groups as Guest or Reporter.
Since we use GitLab Enterprise Edition, such a user would count towards the license.

With Gitolite we have configured to call the following URL for each repository on git push
https://jenkins.company.com:8443/git/notifyCommit?url=ssh://[hidden email]/group/project.git

I could manually create Webhooks in GitLab for each project triggering this URL, but that would a big feat, considering we have about 400+ repositories.

I have installed in Jenkins LTS. 2.263.1 these plugins:
GitLab (This plugin is not maintained)
GitLab Branch Source

In GitLab Project Settings > Integration Settings > Jenkins CI
Is there a better way to integrate Jenkins with GitLab, considering this plugin is no longer being maintained.

I would think the best way is to use the GitLab Branch Source plugin. Adding a GitLab group, then all projects in that group will be added to Jenkins. In theory (I have not tried it).

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f973268d-c6c6-4d4b-ba66-3b5b2f331b2cn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Integrate with GitLab

Sverre Moe-2
Is it possible to combine both GitLab Plugin with GitLab Branch Source Group?

The Group Project will notify GitLab when builds succeeds or fails, but it just shows if the entire pipeline is success or failed.

We would like to show something like Travis shows in GitHub
Compile success
Test failed
Analysis pending

I do not know if this is possible with the GitLab API.

I tried running the GitLab Plugin steps, within a GitLab Group Merge Request build.
It did nothing. No information on GitLab MR when I sent
updateGitlabCommitStatus
lørdag 6. mars 2021 kl. 21:41:20 UTC+1 skrev Sverre Moe:
What is the preferred way to Integrate both Jenkins and GitLab?
What is the best way to do it?

GitLab has deploy keys. I have created deploy keys for all 30 Jenkins build agents.
I have added these deploy keys to each project. We only got 8 projects migrated from Gitolite at the moment. Adding all the deploy keys to 400+ projects is not a good way.

The GitLab Jenkins Integration documentation mentions creating a Jenkins user in GitLab.
Then that user could be added to each groups as Guest or Reporter.
Since we use GitLab Enterprise Edition, such a user would count towards the license.

With Gitolite we have configured to call the following URL for each repository on git push

I could manually create Webhooks in GitLab for each project triggering this URL, but that would a big feat, considering we have about 400+ repositories.

I have installed in Jenkins LTS. 2.263.1 these plugins:
GitLab (This plugin is not maintained)
GitLab Branch Source

In GitLab Project Settings > Integration Settings > Jenkins CI
Is there a better way to integrate Jenkins with GitLab, considering this plugin is no longer being maintained.

I would think the best way is to use the GitLab Branch Source plugin. Adding a GitLab group, then all projects in that group will be added to Jenkins. In theory (I have not tried it).

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c43940de-dba9-4e49-95f6-940f0e6bcb63n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Integrate with GitLab

Sverre Moe-2
Shame.
With GitLab Plugin, on a Multibranch Pipeline Project.
I get to see all the stages that has succeeded and failed on the GitLab Merge Request.

When I click on the Stages Icon, when using GitLab Plugin it shows me all the stages.
When using GitLab Group all it shows is "jenkinsci/mr-head".

Is there any way to get the same with GitLab Group?
The updateGitlabCommitStatus run within a Jenkinsfile on a GitLab Group Project does not make its way into GitLab.
tirsdag 16. mars 2021 kl. 19:32:59 UTC+1 skrev Sverre Moe:
Is it possible to combine both GitLab Plugin with GitLab Branch Source Group?

The Group Project will notify GitLab when builds succeeds or fails, but it just shows if the entire pipeline is success or failed.

We would like to show something like Travis shows in GitHub
Compile success
Test failed
Analysis pending

I do not know if this is possible with the GitLab API.

I tried running the GitLab Plugin steps, within a GitLab Group Merge Request build.
It did nothing. No information on GitLab MR when I sent
updateGitlabCommitStatus
lørdag 6. mars 2021 kl. 21:41:20 UTC+1 skrev Sverre Moe:
What is the preferred way to Integrate both Jenkins and GitLab?
What is the best way to do it?

GitLab has deploy keys. I have created deploy keys for all 30 Jenkins build agents.
I have added these deploy keys to each project. We only got 8 projects migrated from Gitolite at the moment. Adding all the deploy keys to 400+ projects is not a good way.

The GitLab Jenkins Integration documentation mentions creating a Jenkins user in GitLab.
Then that user could be added to each groups as Guest or Reporter.
Since we use GitLab Enterprise Edition, such a user would count towards the license.

With Gitolite we have configured to call the following URL for each repository on git push

I could manually create Webhooks in GitLab for each project triggering this URL, but that would a big feat, considering we have about 400+ repositories.

I have installed in Jenkins LTS. 2.263.1 these plugins:
GitLab (This plugin is not maintained)
GitLab Branch Source

In GitLab Project Settings > Integration Settings > Jenkins CI
Is there a better way to integrate Jenkins with GitLab, considering this plugin is no longer being maintained.

I would think the best way is to use the GitLab Branch Source plugin. Adding a GitLab group, then all projects in that group will be added to Jenkins. In theory (I have not tried it).

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/397ef030-afe4-474c-a2be-907e8099295bn%40googlegroups.com.