TeamCity - setParameter value available to Build Feature

孤人 提交于 2019-12-12 18:10:40

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!