Build report tab start page

Hi, I'm having trouble getting a report showing.

 

I have the following artifact path 

 

gatling.zip

 

That contains this structure

\gatling.zip
 -\gatling
-\runtest-120501032019 -index.html\

The folder that contains the numbers, will always change depending on data.
So I'm trying to use some wildcards in teamcity to get the index.html from the folder regardless of it's name.
But I can't get it working. In the build report tab start page I've tried a range of different ways but the index.html
is never found in the Gatling build report tab.

I'm trying something like this

gatling.zip!**/**/index.html

Can anyone give some advice on how to get this working? Thanks!

0
4 comments

I'm afraid that wildcards aren't supported. In this scenario, a possible solution would be to export the path as a build parameter, then reference this parameter on the report path. For build-scoped reports, the parameters will be resolved in the context of the build and that should work.

 

If you can't report them automatically, simply add a build step that exports the parameter using a build message: https://confluence.jetbrains.com/display/TCD18/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-AddingorChangingaBuildParameter

0
Avatar
Permanently deleted user

Sorry, the proposed approach does not seem to work.

1) I have added command line build step to export parameter -

echo "##teamcity[setParameter name='perf-test-log' value='aws.jmx.log']"

2) Defined artifact path under 'General settings' of the same build configuration as step 1

3) Under subproject level report tab I have created a new tab title called 'Perf Test Log' with start page set to /path/to/archive/!/%perf-test-log%

No report tab is created in build results page on running the job. I have even tried different combinations like making 'perf-test-log' environment var or even creating a parameter under build parameters page etc but none of them helped.

Could you please point me at right direction on passing dynamic filename to report tab please ?

 

Many Thanks!

 

0
Avatar
Permanently deleted user

Hi 

Can you please come back on this ? I have spent 3.5 days experimenting different possibilities but seems like subproject -> report tab does not seem to resolve any parameter, it treats everything in 'start page' as literals.

Please could you confirm if this is true and whether there is any other option to supply parameter to report tab to make non-supported files like .log, .jtl etc appear on report tab ?

 

Thanks!

0

Hi,

 

sorry for the delay, unfortunately this are difficult times for our resources as well.

 

I have just tested this scenario and the reports, both at project level and at build level are being generated on my end. As a short reminder, as this is often cause for confusion, the project report tab will appear at the project level and the build report tab at the build results page, but none will appear at the build configuration level. If the files do not exist or aren't found, the tab should still be displayed but mention that the files do not exist or are not found.

 

If you are still having issues with this, instead of abstracted references, please post exactly the configuration you have (ideally with a screenshot) for the report tab. Also make sure that the parameter is being reported by the builds, if it's not present, it will not be displayed.

0

Please sign in to leave a comment.