@Strahil
No, it always fails for groovy scripts that has a trait of gitTagDiscovery()
So I just copied from this example:
https://github.com/jenkinsci/job-dsl-plugin/wiki/Testing-DSL-ScriptsAnd this the groovy script that is failing.
multibranchPipelineJob 'multi-branch', {
branchSources {
branchSource {
source {
git {
id '1232434343234'
remote '
https://github.com/test/test2.git'
credentialsId 'test-token'
traits {
gitBranchDiscovery()
gitTagDiscovery() // if you need tag discovery
}
}
}
strategy {
defaultBranchPropertyStrategy {
props {
noTriggerBranchProperty()
}
}
}
}
}
}
Let me know if you need additional information.