Project

General

Profile

Actions

JenkinsGroovy » History » Revision 5

« Previous | Revision 5/28 (diff) | Next »
Andreas Kohlbecker, 08/14/2013 11:04 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")
metadata.versioning.versions.version.each{
      println "> " + it
}

doc:

Updated by Andreas Kohlbecker over 10 years ago · 5 revisions