Double quotes within command line build step do not work

I am trying to invoke from a command line teamcity build job:

cmake .. -G "NMake Makefiles"

Unfortunately, teamcity is not able to parse the double quotes and this is causing me a lot of problems.

I've had to resort to very inelegant workarounds because of this.

Based on my research, this is an unresolved bug in teamcity.

I am running the latest version 2018.2.3.

If this issue does have a fix or a workaround, please let me know what it is so that I can simplify my process.

Thank you.

 

0
1 comment

Hi Rohit,

 

how have you configured your runner? (how it doesn't work). Quotes should work just fine. I would also like to point out that you could use the specific cmake plugin: https://teamcity.jetbrains.com/project.html?projectId=TeamCityPluginsByJetBrains_CMakePlugin

 

In particular, depending on how you've set up the build runnre, TeamCity shouldn't "parse" the quotes, they should just be passed as is to the runner. Are you using a custom script, or passing those to be run as an executable? Custom scripts are usually a better approach if you aren't using them.

0

Please sign in to leave a comment.