Project

General

Profile

Actions

JenkinsGroovy » History » Revision 2

« Previous | Revision 2/28 (diff) | Next »
Andreas Kohlbecker, 08/14/2013 10:39 PM


Groovy Scripts for Jenkins

You can evaluate groovy scripts in the Jenkins Script Console.

There are several plugins which can be programmed with Groovy:

*


Get all versions of an artifact from a maven repository

def metadata = new XmlSlurper().parse("http://wp5.e-taxonomy.eu/mavenrepo/eu/etaxonomy/cdm-server/maven-metadata.xml")
println metadata.@count
metadata.versioning.versions.each{
      println it
}

doc:

Updated by Andreas Kohlbecker over 10 years ago · 2 revisions