GroovyAxis

Skip to end of metadata
Go to start of metadata

Plugin Information

Plugin ID groovyaxis Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
Dependencies
0.3 (archives)
Jan 04, 2013
1.472
Source Code
Issue Tracking
Maintainer(s)
GitHub
Open Issues
Emanuele Zattin (id: emanuelez)
Usage Installations 2014-Apr 231
2014-May 237
2014-Jun 247
2014-Jul 260
2014-Aug 245
2014-Sep 261
2014-Oct 295
2014-Nov 295
2014-Dec 289
2015-Jan 301
2015-Feb 305
2015-Mar 319

Jenkins Groovy Axis Plugin

Description

This plugin allows to have scriptable axes for Matrix Jobs. Groovy is the scripting language being used.

The script will have to return a list of strings and each of the strings will be an element of the axis.

If the script does not return a list of strings then

[default]

will be returned instead.

Examples

Define an axis with three values:

return [ "Axis1", "Axis2", "Axis3" ]

Define the same axis programmatically:

def result = []
(1..3).each {
   result += "Axis"+it
}
return result

Define an axis whose values are the files in the root directory:

def dir = new File('/')
def result = []
dir.eachFile {
   if (it.isFile()) {
      result += it.canonicalPath
   }
}

return result

Screenshot

Labels

Edit
plugin-misc plugin-misc Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Add Comment