Jenkins Multibranch Pipeline With Git Tutorial

Then, run the following commands to create two branches from the main branch: git checkout -b fix-123 git checkout main git checkout -b dev-456 Now you need to push these branches to the remote repository so that the Jenkins job is able to see them and create the jobs automatically. To do so, run these […]

Then, run the following commands to create two branches from the main branch: git checkout -b fix-123 git checkout main git checkout -b dev-456 Now you need to push these branches to the remote repository so that the Jenkins job is able to see them and create the jobs automatically. To do so, run these commands: git push -set-upstream origin dev-456 git push -set-upstream origin fix-123 If you go to GitHub, you should see that the two new branches were pushed successfully. (You can also check out Darin Pope’s video tutorial on this subject at the end of this post.) But first, let’s start by reviewing in more detail what a multibranch pipeline job is.
Source: CloudBees