问题
I've a little PS script to write this TC integration command:
##teamcity[setParameter name='AssemblyVersionString' value='1.0.46.48'
Which sets a Configuration Parameter which appears to run fine in the logs. The Configuration Parameter is defined at the project level and has a default value.
Eventually I want to use the AssemblyInfoPatcher but for testing, I've added a Build Feature to tag the git repo but its tagging with the default value.
Are changes during the build supposed to be 'visible' to the Build Features when they run??
回答1:
Nailed it.
By looking in the (very useful) Parameters tab after the build completes, all the values made available to the build are listed, along with a little icon for those that are altered during the build!
My AssemblyVersionString parameter was unchanged. This caused me to check carefully the logs and I noticed that the terminating ]
was missing!
Fixed my PS script and its working. I'm going to go to lunch now if that's alright.
来源:https://stackoverflow.com/questions/33919004/teamcity-setparameter-value-available-to-build-feature