Project

General

Profile

JenkinsGroovy » History » Version 2

Andreas Kohlbecker, 08/14/2013 10:39 PM

1 1 Andreas Kohlbecker
2
# Groovy Scripts for Jenkins
3
4
5
You can evaluate groovy scripts in the Jenkins _Script Console_.
6
7
8
There are several plugins which can be _programmed_ with Groovy:
9
10
 *
11
12
13
14
----
15
16
Get all versions of an artifact from a maven repository 
17
18
~~~
19
def metadata = new XmlSlurper().parse("http://wp5.e-taxonomy.eu/mavenrepo/eu/etaxonomy/cdm-server/maven-metadata.xml")
20
println metadata.@count
21
metadata.versioning.versions.each{
22
	  println it
23
}
24
~~~
25 2 Andreas Kohlbecker
26
doc:
27
28
* http://groovy.codehaus.org/api/groovy/util/XmlSlurper.html