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
Jan 04, 2013
1.472
Source Code
Issue Tracking
Maintainer(s)
GitHub
Open Issues
Emanuele Zattin (id: emanuelez)
Usage Installations 2013-Apr 139
2013-May 170
2013-Jun 165
2013-Jul 176
2013-Aug 195
2013-Sep 196
2013-Oct 205
2013-Nov 200
2013-Dec 198
2014-Jan 203
2014-Feb 217
2014-Mar 233

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