Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

teamcity how to handle configuration parameters which contains "%"

Tags:

teamcity

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?

like image 444
SZSL Avatar asked Nov 15 '25 06:11

SZSL


1 Answers

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.

like image 141
Tuukka Haapaniemi Avatar answered Nov 17 '25 20:11

Tuukka Haapaniemi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!