How to Create a GitLab Multibranch Pipeline in Jenkins
Vložit
- čas přidán 29. 06. 2024
- Need help with your Jenkins questions?
Visit community.jenkins.io/c/using-...
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
plugins.jenkins.io/gitlab-bra...
CloudBees on Twitter:
/ cloudbees
Darin on Twitter:
/ darinpope - Věda a technologie
Many thanks. I waste much time to find right solution for configuring webhooks in multibranch jobs. Will try Gitlab Branch Source plugin)
this single video saved me a ton of time of research, thanks deeply
Thanks, Really helpful for Multibranch pipeline configure
well explained - much appreciated !
Thank you, your video was very useful!
Thank you so much!
Thanks!
non hindish - like, sub and god bless you.
Thanks for this video, it's very helpful. One question please is this applicable for the pull request?
Thankss
I can not add any credential, even i have already added the new one, it doesn't appear on droplist. How to fix it?
What you done to publish a pipeline status to the gitlab commit or branch?
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?
Yes, it will work for any branch which contains Jenkinsfile. It's completely up to you how you do merge on GitLab side, plugin works for any MR and any branch.
Anybody encounred an issue where multibranch not clones the repo but just obtains the Jenkinsfile ?
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?
Why `When { branch 'MR-*' }` work for merge request from fix-123 to main? There is no branch name of 'MR-*' there.
After MR is created, Jenkins uses a branch named MR-* to build the project.
I don't have anything in secret token? Is that a different video?
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: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == “master"
Hello Dear ;
i have this problem
git@gitlab.com: Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.
i did eveything like you but is not working on jenkins can you help me please ?
you should put passphrase when creating credentials man :)