I have written a Build Feature plugin for TeamCity.
My problem: When a user provides values using build parameters, such as %stash.hostname%, I cannot read its actual value.
But I want it to be whatever the user typed in as a build parameter (http://localhost:81).
In other words, how can I access the resolved value of the user provided parameterized values without performing string replacements myself (to avoid errors and reinventing the wheel)?
In my code, I have tried playing around with SRunningBuild and SBuildFeatureDescriptor, but can't see "stash_host" being properly resolved anywhere.
The user may define build parameters such as this
This is what the user provides in my build feature plugin:
But in my code, all I get is http://%stash.hostname%:%stash.port%/
Any help is appreciated!
Attachment(s):Screenshot from 2014-01-09 21:47:36.pngScreenshot from 2014-01-09 21:47:12.png