Global Variable String Parameter Plugin

Skip to end of metadata
Go to start of metadata

Plugin Information

Plugin ID global-variable-string-parameter Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
Dependencies
1.2 (archives)
Sep 17, 2013
1.525
Source Code
Issue Tracking
Maintainer(s)
GitHub
Open Issues
Patrick McKeown (id: pmaccamp)
Mario Vuong (id: marsbar)
Usage Installations 2014-Mar 785
2014-Apr 809
2014-May 863
2014-Jun 881
2014-Jul 990
2014-Aug 998
2014-Sep 1075
2014-Oct 1082
2014-Nov 1077
2014-Dec 1069
2015-Jan 1150
2015-Feb 1183

Global Variable String Parameter Plugin

Provides a parameter with support for global node properties via $VARIABLE or ${VARIABLE}

Utilization

After installing, in your job choose Add Parameter and select Global Variable String Parameter. Use $VARIABLE or ${VARIABLE} in either the default value or on the build now page to substitute global node parameters.

Version History

Version 1.2 (Sept 17 2013)

  • Fix race condition where concurrent builds could cause variables not to substitute

Version 1.1 (Nov 02 2012)

  • Initial Release

Example

  1. Create a global variable
  2. Create a global variable string parameter in a job
  3. Reference the global variable in the default value
  4. Add a simple echo statement to demonstrate the substitution
  5. The variable remains unsubstituted on the Build Now page
  6. But is correctly substituted in the console output
  7. The variable can also be changed from the build now screen to be incorrect
  8. And no longer substitutes

Labels

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

Add Comment