pipeline {
agent any
stages {
stage('test') {
steps {
jobDsl scriptText:
"""multibranchPipelineJob("job-features") {
branchSources {
branchSource {
source {
git {
id('123456789')
remote("gir-
url.git")
includes("
feature/*")
}
}
strategy {
defaultBranchPropertyStrategy
{
props {
noTriggerBranchProperty()
}
}
}
}
}
configure {
def traits = it / sources / data
/ 'jenkins.branch.BranchSource' / source / traits
traits <<
'jenkins.plugins.git.traits.BranchDiscoveryTrait' {}
}
triggers {
periodic(5)
}
orphanedItemStrategy {
discardOldItems {
daysToKeep(3)
numToKeep(3)
}
}
}"""
}
}
}
}I am trying to create a job using job-dsl to seed a multibranch job that includes auto discovery of branches and the supress scm strategy. For some reason in this format the includes option is not working. Any ideas? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c0499942-f07f-4077-ac93-ccfaa1f55a1c%40googlegroups.com.
