Jenkins multibranch pipeline Scan without execution

Daniel Majano picture Daniel Majano · May 16, 2017 · Viewed 14k times · Source

Is it possible to Scan a Multibranch Pipeline to detect the branches with a Jenkinsfile, but without the pipeline execution?

My projects have different branches and I don't want that all the children pipelines branches with a Jenkinsfile to start to execute when I launch a build scan from the parent pipeline multibranch.

Answer

42tg picture 42tg · May 19, 2017

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

This prevents Jenkins from building everything with an Jenkinsfile.