How to kick start multibranch pipeline in Jenkins pipeline automatically every time you make a code change in your SCM?
Pre-requisites:
We need to install multibranch scan webhook trigger plug-in
Go to Jenkins, Manage Jenkins. Manage plug-ins.
search by multibranch scan
Once plug-in is installed, let's create a hook.
Please watch the above steps in YouTube channel:
Steps:
Go to Jenkins, click on your existing multibranch pipeline job. Click on configure.
Copy Jenkins url for configuring webhooks. click on ?
Now create a webhook in GitHub
Go to your git repo, click on settings, Webhooks.enter jenkins url
JENKINS_URL/multibranch-webhook-trigger/invoke?token=myToken123Click on update webhook. make sure it has configured correctly.
No comments:
Post a Comment