It's straightforward to set hardcoded values in the plugin's Advanced > Presentation > Classifications section, but a value like ${FOO} is displayed literally as ${FOO} instead of expanding.
I set FOO like so in the build shell script, but it does not get displayed in the report.
export FOO=hello
I then tried creating my own .properties file:
echo buildVersion=$LAST_BUILD_VERSION >> report-vars.properties
echo greeting=hola >> report-vars.properties
echo classifications.message=hello >> report-vars.properties
cat report-vars.properties
find . -name '*\.properties'
In Console Output below, I can confirm the Cucumber report plugin is finding the .properties file:
[CucumberReport] Copied 2 properties files from workspace
Based on the find output above, the two files must be
- ./sonar-project.properties, and
- ./report-vars.properties
Since those are the only .properties files present.
I have token-macro:2.6 installed.