How to Create a GitLab Multibranch Pipeline in Jenkins

preview_player
Показать описание
Need help with your Jenkins questions?

Timecodes ⏱:

00:00 Introduction
00:21 Overview
00:34 Starting point
02:03 Create a GitLab Personal Access Token to use with a Jenkins controller
03:16 Create a SSH Key in GitLab
04:11 Create a GitLab Personal Access Token credential in a Jenkins controller
05:01 Create a SSH Username with private key credential in a Jenkins controller
06:09 Configure GitLab server
07:44 Create a multibranch pipeline
11:01 Add a Jenkinsfile to the GitLab project
12:57 Create a new branch in the GitLab project
14:09 Modify the Jenkinsfile in the new branch
15:42 Create a merge request in GitLab
16:28 Review the MR in the multibranch pipeline
17:10 Merge the merge request and review the multibranch pipeline
18:41 Conclusion

#jenkins #multibranch #gitlab

Information referenced in this video:

Jenkins LTS 2.277.1
GitLab Branch Source plugin 1.5.4

CloudBees on Twitter:

Darin on Twitter:
Рекомендации по теме
Комментарии
Автор

Many thanks. I waste much time to find right solution for configuring webhooks in multibranch jobs. Will try Gitlab Branch Source plugin)

mitya
Автор

this single video saved me a ton of time of research, thanks deeply

itsfaustvi
Автор

Thank you, your video was very useful!

nurmamedamanov
Автор

non hindish - like, sub and god bless you.

VelikiyZmey
Автор

Thanks, Really helpful for Multibranch pipeline configure

chiragprajapati
Автор

I can not add any credential, even i have already added the new one, it doesn't appear on droplist. How to fix it?

nelta
Автор

Thanks for this video, it's very helpful. One question please is this applicable for the pull request?

chawkimguedmini
Автор

Anybody encounred an issue where multibranch not clones the repo but just obtains the Jenkinsfile ?

zoepthe
Автор

Why `When { branch 'MR-*' }` work for merge request from fix-123 to main? There is no branch name of 'MR-*' there.

gzdaniel
Автор

hi,
I need to download artifacts in gitlab workspace once the Jenkin job is completed. I am using sleep as delay after my curl build command to wait for the build to be complated as of now, but I want to make it dynamic. Could anyone suggest me how do i do that?

ashish
Автор

What you done to publish a pipeline status to the gitlab commit or branch?

rssaini
Автор

I don't have anything in secret token? Is that a different video?

jteasler
Автор

Thanks for this video just one question can this work fine when I want to merge my changes into another branch instead main/master branch of gitlab. If yes how can we do that?

AbhijeetWaghmare
Автор

How to trigger gitlab pipeline when commit to other branches except develop and master, also while merge to master branch?
The below code is not working
rules:
- if: $CI_COMMIT_BRANCH != “master”
- if: $CI_COMMIT_BRANCH != “develop”
- if: == “master"

raghupathym
Автор

Hello Dear ;
i have this problem
fatal: Could not read from remote repository.
i did eveything like you but is not working on jenkins can you help me please ?

mustafasamilileri