We are currently live with Bamboo 2.7.3 and everything is running fine. We have a custom command line tool for Windows that preps our code before the release, pulling in the right version of various mercurial repositories
I am currently checking that everything works as expected in Bamboo 3.2 before we upgrade. It all looks good apart from one case where the command line tool takes takes a parameter that has spaces. In Bamboo 2.7.3 we just wrapped this value with double-quotes as you would on the command-line and everything worked fine.
In Bamboo 3.2 the double quotes seem to be being removed, thus breaking the call to the command line tool. There are a couple of other issues on the forums here where people seem to have had issues where double quotes have been in arguments defined in Bamboo. Has the way of defining this sort of thing changed?
An example of the arguments that I am trying to pass to the command line tool is
/r:"Build Phase 3" /b:default /w:c:\build\debug\Build3\x86\continuous\default /c:Debug /bv:${bamboo.buildNumber}
The first value seems to have its double quotes removed before reaching the command line, causing the tool to see a repo of "Build", invalid paramaters of "Phase" and "3" rather than a repo of "Build Phase 3" (without quotes)
What if you pass "/r:Build Phase 3" ?
That does work - thanks!
Are there other things that have changed like this or was the 2.7.3 implementation wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To get better control over external processes, we have changed the library that launches processes and it's one of the things that has changed together with it.
Have fun using 3.2!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What about /r:\"Build Phase 3\" ? Ron's answer gave me the idea of seeing if maybe the quote could be escaped. I'm surprised it actually worked for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use " in place of the double quotes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ron - that doesn't work. The command line is being trucated at the first "
E.g. defining
/r:"Build Phase 3" /b:default /w:c:\build\debug\Build3\x86\continuous\default /c:Debug /bv:${bamboo.buildNumber}
Leads to just /r: being passed to the command line
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.