zaabjuda/teamcity-python

% character create an implicit build configuration

GoogleCodeExporter opened this issue · 3 comments

What steps will reproduce the problem?
1.create a python script where you try to contruct a string containing % 
character
markabelo = "a simple string"
toto = "this is an insane character this %"+markabelo+"% become an implicit 
build configuration

What is the expected output? What do you see instead?
i don't want to get an implicit build parameter, this is in a context where i 
need to perform a SQL query with LIKE %somestring%

What version of the product are you using? On what operating system?
7.1

Please provide any additional information below.


Original issue reported on code.google.com by bedar...@gmail.com on 2 May 2013 at 9:07

Thank you for the issue!

Original comment by leonidos on 2 May 2013 at 9:11

  • Changed state: Accepted
Hello,

handle somehow such problem in the python plugin is not a good idea because it 
make python runner to be inconsistent with other runners.

So, 2 workarounds:

1. Use %% if you don't want to introduce a parameter. The double % will becomes 
a single % when running.

2. Put the script into a file, check it in into the VCS and then run file 
instead of running script.

Original comment by leonidos on 3 May 2013 at 3:35

  • Changed state: WontFix
But, if you have a better idea how to resolve/workaround this problem - welcome.
Thanks

Original comment by leonidos on 3 May 2013 at 3:37