Child pages
  • Global Variable String Parameter Plugin

Due to some maintenance issues, this service has been switched in read-only mode, you can find more information about the why

and how to migrate your plugin documentation in this blogpost

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Plugin Information

View Global Variable String Parameter on the plugin site for more information.

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.

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
  • No labels