Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repos.each { repo, props ->
- multibranchPipelineJob('python_' + repo) {
- // MF: How outrageously obscure is this?
- configure { node ->
- node / sources / data / 'jenkins.branch.BranchSource' / source / traits {
- 'jenkins.plugins.git.traits.TagDiscoveryTrait'()
- }
- }
- branchSources {
- git {
- remote(props.URL)
- credentialsId('builduser')
- // FIXME: switch to dev and master branches
- includes('python-packaging master dev')
- }
- }
- factory {
- workflowBranchProjectFactory {
- scriptPath('python/Jenkinsfile')
- }
- }
- orphanedItemStrategy {
- discardOldItems {
- numToKeep(20)
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement