jenkinsjenkins-pipelinemultibranch-pipeline

Prevent Jenkins multibranch pipeline from triggering builds for new branches


I have a multibranch pipeline job for deploying an application in IIS. Because of it, I cannot run the job (that deploys a new version of the application) when new branches are discovered.

I need to configure the trigger only to discover new branches and do not trigger the job.


Solution

  • In your Branch Sources section you can add a Property named Suppress automatic SCM triggering.

    This prevents Jenkins from building everything with an Jenkinsfile.

    More Info