We have two pipelines:
- Main Pipeline: Runs when changes are merged into
main. - Feature1 Pipeline: Runs on feature branches except
main.
This pipeline will run for all branches except main.
We are developing a release pipeline that triggers when we commit or push to main.
Once changes are merged into main, this pipeline will execute.
For other pipelines, ensure they are configured not to run on the main branch.

- Ensure Jenkins is installed.
- Add the Pipeline and Multibranch Pipeline plugins.
- Go to Jenkins Dashboard → New Item.
- Select Multibranch Pipeline and name it.
- Click OK.
- Under Branch Sources, select Git or GitHub.
- Provide the repository URL and credentials.
- Ensure your repository has a
Jenkinsfiledefining the pipeline stages.
- In Advanced under Branch Sources, set:
- Jenkins will scan the repository and trigger jobs accordingly.
