Run-time parameter name

Answered

Hello!

 

Let's say, I have several dependencies, producing coverage results.

How should I summarize all of them?

 

Fo example these are paramters:

dep.project1.lines_covered

dep.project2.lines_covered

...

dep.project10.lines_covered

 

Is there any way to substitute some part of parameter name in runtime?

For example, like this:

%dep.${project_name}.lines_covered%

So I could sum in a loop?

 

Thank you!

1 comment

Hello Anton,

TeamCity does not support additional processing of values in %-references, it can only be used "as is". 

As workaround you can try to create e.g. a .bat file with resolved parameters and then run it.

0

Please sign in to leave a comment.