Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- svnCommand = "svn list --xml http://myrepo/svn/repo_name/branches"
- def proc = svnCommand.execute()
- proc.waitFor()
- def xmlOutput = proc.in.text
- def lists = new XmlSlurper().parseText(xmlOutput)
- def listOfBranches = lists.list.entry.name
- listOfBranches.each(){
- def branchName = it.text()
- println "found branch: '${branchName}'"
- }
- mavenJob('${branchName}'){
- mavenInstallation('M3.3.9')
- logRotator(365, 25, -1, -1)
- scm {
- svn {
- location('http://myrepo/svn/repo_name/branches/${branchName}') {
- credentials('4t4d8ef-p67a-5298-a011-580ghe898a65')
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement