×

Html & Html5

The World's best Software Development Study Portal

Jenkins




Click on New Item
Give name like my-pipeline and select Multibranch Pipeline
Navigate to branch Code and select Git project
Just copy the clone url of project from Gitlab
In Behaviours select Filter by name (with regular expression). * it execute all the brances (main and master)
We needs to have username and password to Jenkins can check the above url code
Go to credentials create 2 types credentials global and system
If you go back to Jenkins you will see pipeline under pipeline you will again see the pipeline - Now that is 3rd scope, That scope is limited to pipeline and only available to multipipe line and come from folder plugins.
Go inside the pipeline and add credentials select username an password
Go to my-pipeline scope and delete old one and create credentials gitlab. Write git username and password ands in ID give project name.
Now when you go back to my pipeline branch code and refresh it and again copy git clone url from gitlab. When click on credentials you will have the available credentials for selection. Then click on save if username n password is correct it will build your multi branch pipeline(my-pipeline)
Discover branches by name
Click on configure Go to Behaviours - Discover Branches - Filter by names
^master|main|featuer-test|.*$
Create one more branch feature-test created from master.
Then click Scan Multibranch Pipeline Log





CSS 3 training insitute | Best IT Training classes in Gurgaon | Web Designing Training Institute