XL Release Variables Setter is a plugin that permits to set variables values into a running release.
This plugin uses native XL Release REST Api ( Xebialabs © ) to communicate with.
The plugin can be install with the differents methods described in the Jenkins documentation : Jenkins Plugins - How to install plugins
If your Jenkins server is behind a HTTP Proxy, the plugin is checking its configuration first.
You can check or define it from this way : Manage Jenkins -> Manage Plugins -> Advanced tab
Assuming your Jenkins server is already defined in XL Release ( Shared Configuration -> Jenkins : Server ), in a template, define a variable with an empty value, and uncheck required :
Then, in a step configured as a Jenkins Job, add a Job Parameter for carrying the release Id :
This section permits to define any parameters needed to access to a XL Release server
Manage Jenkins -> Configure System
Before saving parameters, use the Test Connection button to validate the configuration.
Add a String parameter, that have the same name as the variable name defined in XL Release, to catch the release id.
If the global configuration is done and all is correct, then in a free-style project you can see the item XL-Release Var Setter in the list build step.
To configure the job step, you need to set this parameters :
Simple example of a job ( using the EnvInject Plugin ) :
When the job is launched, you can follow the interactions between Jenkins and XL Release in the console. If you have checked the debug mode, the outputs are more verbose.
If the job have a problem, the console shows the stacktrace.
Minor changes since the first release (v0.1) to match Jenkins workflow requirements.