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
Sep 17, 2013
1.525
Source Code
Issue Tracking
Maintainer(s)
GitHub
Open Issues
Patrick McKeown (id: pmaccamp)
Mario Vuong (id: marsbar)
Usage Installations 2013-Apr 233
2013-May 302
2013-Jun 356
2013-Jul 455
2013-Aug 437
2013-Sep 514
2013-Oct 563
2013-Nov 582
2013-Dec 590
2014-Jan 635
2014-Feb 723
2014-Mar 785

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