I'm creating a multi-branch pipeline job via Groovy.
multibranchPipelineJob('example') {
branchSources {
github {
id('23232323')
scanCredentialsId('github-ci')
repoOwner('OwnerName')
repository('job-dsl-plugin')
}
}
orphanedItemStrategy {
discardOldItems {
numToKeep(10)
}
}
}
This works fine, but sets the Discover Branches Strategy to All branches
Is there a way to set Exclude Branches that are also filed as PRs to be the default?