vyadh / teamcity-deployment-dashboard

A TeamCity dashboard to help summarise what app version has been released to what environment.
Apache License 2.0
26 stars 5 forks source link

Support resolving parameter references #14

Closed vyadh closed 5 years ago

vyadh commented 5 years ago

Currently the plugin shows parameters in the configuration as literal values that it finds. However, it may be that this is a reference to a parameter than references other parameters. For example, a parameter for "version" might be:

%version_number%+%build.counter%

These references are not resolved, which means configuration needs to output what has been computed in a literal way, which complicates TeamCity configuration. It also prevents use of parameters from earlier in the build chain - which is often the build number you're interested in.

Should support this scenario, but at the same time avoid performance regressions when no parameters are present.

vyadh commented 5 years ago

Rather than build.buildOwnParameters, we can use parametersProvider and valueResolver.