Reputation: 586
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.
Upvotes: 3
Views: 4028
Reputation: 843
If you are using a Jenkinsfile to define your pipe, add the following to the options
block:
pipeline {
...
options {
overrideIndexTriggers(false)
}
}
While the syntax is a bit opaque, it will cause the pipe to not run when triggered by indexing.
Upvotes: 0