def projects = ['a', 'b', 'c', 'd', 'e', 'f']
for(name in projects) {
def projName = name
freeStyleJob(projName) {
wrappers {
credentialsBinding {
usernamePassword('TFS_USER', 'TFS_PASS', 'ID')
}
}
configure { project ->
project.remove(project / scm)
project / scm(class: 'hudson.plugins.tfs.TeamFoundationServerScm') {
serverUrl 'http://some_TFS_server:8080/tfs/Datacollection'
projectPath '$/' + projName
workspaceName 'Hudson-' + projName + '-' + NODE_NAME
useUpdate true
password ${TFS_PASS}
userName ${TFS_USER}
}
}
}
}
--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/d975ccd9-d84c-4efb-8bf2-f49ddb7080be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.