Revision: 62682
Updated Code
at March 25, 2013 17:36 by alces
Updated Code
new File(System.getenv('HUDSON_HOME'), 'jobs').eachFile {j -> c = new File(j.absolutePath, 'config.xml') if (c.file) new XmlParser().parse(c).'**'.findAll{it.name() == 'mavenName'}.collect{"$j.name: ${it.text()}"}.unique().each { println it } }
Revision: 62681
Updated Code
at March 7, 2013 22:18 by alces
Updated Code
new File(System.getenv('HUDSON_HOME'), 'jobs').eachFile {j -> c = new File(j.absolutePath, 'config.xml') if (c.file) new XmlParser().parse(c).'**'.findAll{it.name() == 'mavenName'}.each { println "$j.name: ${it.text()}" } }
Revision: 62680
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 6, 2013 01:47 by alces
Initial Code
new File(System.getenv('HUDSON_HOME'), 'jobs').eachFile {j -> c = new File(j.absolutePath, 'config.xml') if (c.file) new XmlParser().parse(c).'**'.each {n -> if (n.name() == 'mavenName') println "$j.name: ${n.text()}" } }
Initial URL
hudson_mvn_vers
Initial Description
Ant or JDK versions printing makes via the same way. Use 'antName' or 'jdk' instead 'mavenName' string.
Initial Title
Print maven version for all Hudson jobs
Initial Tags
Initial Language
Groovy