Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. svnCommand = "svn list --xml http://myrepo/svn/repo_name/branches"
  2. def proc = svnCommand.execute()
  3. proc.waitFor()
  4. def xmlOutput = proc.in.text
  5. def lists = new XmlSlurper().parseText(xmlOutput)
  6. def listOfBranches = lists.list.entry.name
  7.  
  8. listOfBranches.each(){
  9. def branchName = it.text()
  10. println "found branch: '${branchName}'"
  11. }
  12.  
  13. mavenJob('${branchName}'){
  14. mavenInstallation('M3.3.9')
  15. logRotator(365, 25, -1, -1)
  16.  
  17. scm {
  18. svn {
  19. location('http://myrepo/svn/repo_name/branches/${branchName}') {
  20. credentials('4t4d8ef-p67a-5298-a011-580ghe898a65')
  21. }
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement