teamcity how to handle configuration parameters which contains “%”

吃可爱长大的小学妹 提交于 2019-12-13 16:07:02

问题


for example, I need to pass a configuration paramters whose value is "abc%123", but when I encho the values, it is always "abc123", even I followed http://confluence.jetbrains.com/display/TCD8/Defining+and+Using+Build+Parameters+in+Build+Configuration change the value to "abc%%123", the value echoed is still "abc123". I use the teamcity 8.0.4. Does any body hear know how to solve this issue?


回答1:


When you enter the parameter value, you must escape the % with %%, i.e. abc%%123 instead of abc%123. Check out Using the percent sign in TeamCity build scripts for more in depth discussion.



来源:https://stackoverflow.com/questions/22140999/teamcity-how-to-handle-configuration-parameters-which-contains

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