I've successfully been using a Rake build step in my configuration which passes a TESTOPTS option in the "Additional Rake command line" field:
However, I now want to add a second option to the Rake TESTOPTS field. When I run rake manually, at the command line, I use the following syntax, using double quotes to encapsulate both options:
rake <task> TESTOPTS="-v --name=<...>"
This works fine at the command line.
But, when I use this same syntax in my TeamCity build step, the step fails. Looking at the build log I see TeamCity seems to add an extra quote before the TESTOPTS keyword - which presumably causes rake to fail:
Starting: C:\Ruby\bin/ruby.exe C:\TeamCity\buildAgent\plugins\rake-runner\lib\rb\runner\rakerunner.rb --rakefile C:\TeamCity\buildAgent\work\ae1edd57fba32e1c\QA\Rakefile "TESTOPTS="-v --name=/test(?!.*_n$)/"
Why is this extra quote being added? I've tried several combinations of quotes to 'counter' TeamCity, but i've consistently failed.
Any suggestions is appreciated