How to Create a GitLab Multibranch Pipeline in Jenkins

Sdílet
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

Komentáře • 22

  • @mitya2096
    @mitya2096 Před 3 lety +3

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

  • @itsfaustvi0070
    @itsfaustvi0070 Před 3 lety

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

  • @chiragprajapati9316
    @chiragprajapati9316 Před 2 lety

    Thanks, Really helpful for Multibranch pipeline configure

  • @chtouroukhaldoun4301
    @chtouroukhaldoun4301 Před 5 měsíci

    well explained - much appreciated !

  • @nurmamedamanov5927
    @nurmamedamanov5927 Před 4 měsíci

    Thank you, your video was very useful!

  • @aliciaguerrero9030
    @aliciaguerrero9030 Před 2 lety

    Thank you so much!

  • @user-ru8qb9ze1d
    @user-ru8qb9ze1d Před 2 lety

    Thanks!

  • @VelikiyZmey
    @VelikiyZmey Před 2 lety +1

    non hindish - like, sub and god bless you.

  • @chawkimguedmini5684
    @chawkimguedmini5684 Před 2 lety

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

  • @danielbarros5507
    @danielbarros5507 Před rokem

    Thankss

  • @nelta581
    @nelta581 Před 2 lety +1

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

  • @rssaini01
    @rssaini01 Před 2 lety

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

  • @AbhijeetWaghmare9
    @AbhijeetWaghmare9 Před 3 lety

    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?

    • @user-qk1xy7pu3d
      @user-qk1xy7pu3d Před 3 lety

      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.

  • @user-zo4ep5th4e
    @user-zo4ep5th4e Před měsícem

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

  • @ashish9030
    @ashish9030 Před rokem

    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?

  • @gzdaniel1969
    @gzdaniel1969 Před 21 dnem

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

    • @gzdaniel1969
      @gzdaniel1969 Před 21 dnem

      After MR is created, Jenkins uses a branch named MR-* to build the project.

  • @jteasler
    @jteasler Před rokem

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

  • @raghupathym25
    @raghupathym25 Před rokem

    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"

  • @mustafasamilileri3683
    @mustafasamilileri3683 Před 3 lety

    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 ?

    • @user-oc3jz2qj8n
      @user-oc3jz2qj8n Před 2 lety

      you should put passphrase when creating credentials man :)