jenkinsci / cucumber-reports-plugin

Jenkins plugin to generate cucumber-jvm reports
https://plugins.jenkins.io/cucumber-reports/
GNU Lesser General Public License v2.1
210 stars 232 forks source link

Can "injected environment variable" be used in "Json Reports Path" ? #208

Open srohan opened 6 years ago

srohan commented 6 years ago

Suppose the reports are generated in directory - $WORKSPACE/Reports/dir1/ and the jenkins job injects an environment variable like - reportsDir=dir1

Can this (reportsDir) be used in the "Json Reports Path" ? Tried the following as "Json Reports Path" but didn't work - Reports/${reportsDir} Reports/$reportsDir Reports/%reportsDir%

Reports/dir1 - works.

damianszczepanik commented 6 years ago

It does not but I encourage you to add support for this. Should be easy if you take a look at similar feature which was already added for classifications e0a3df43e3e93099b996e67f70a31186ee81de00

srohan commented 6 years ago

Thanks for the response, I will give it a try.

triesz commented 5 years ago

pls see also https://github.com/cucumber/cucumber-jvm/issues/1580

srohan commented 5 years ago

Great, thanks @triesz ! Hope the solution works as required..