{jenkins-plugin-info:pluginId=export-params} |
This plugin can export Jenkins provided parameters to file with various formats. |
If you install this plugin, you can select "Export parameters to file" item from Add build step dropdown list in job configuration.
Field |
Description |
---|---|
File path |
The path of exported file. |
Format |
Exported file format. you can select one of them. |
Keys |
The list of parameter keys you want to export. they should be delimited by ",". |
Use regexp |
You can use regular expression as Keys if checked. |
Name |
Description |
---|---|
EXPORT_PARAMS_FILE |
The path to parameters file |
EXPORT_PARAMS_FORMAT |
The format of parameters file |
Name |
Extension |
---|---|
.properties |
|
.xml |
|
.json |
|
.yml |
Key |
Value |
---|---|
PARAM_STRING |
foobar |
PARAM_BOOL |
checked |
PARAM_TEXT |
orange |
#Mon Apr 03 23:00:00 JST 2014 PARAM_TEXT=orange\napple\ngrape PARAM_BOOL=true PARAM_STRING=foobar |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <entry key="PARAM_TEXT">orange apple grape</entry> <entry key="PARAM_BOOL">true</entry> <entry key="PARAM_STRING">foobar</entry> </properties> |
[{"key":"PARAM_BOOL","value":"true"},{"key":"PARAM_STRING","value":"foobar"},{"key":"PARAM_TEXT","value":"orange\napple\ngrape"}] |
- key: PARAM_BOOL value: 'true' - key: PARAM_STRING value: foobar - key: PARAM_TEXT value: |- orange apple grape |
MIT License.