Bamboo Command Task with MSDeploy and setParam

I'm trying to call MSDeploy and override the 'IIS Web Application Name' parameter  via a Command task and can not get it to respect quotes.

-verb:sync -source:package=${bamboo.projectName}.zip -dest:auto,wmsvc=https://${bamboo.wmsHostname}:${bamboo.wmsPort}/msdeploy.axd?site=${bamboo.siteName},userName=${bamboo.wmsUser},password=${bamboo.wmsPassword},authtype=Basic,includeAcls=False -allowUntrusted:True -setParamFile:${bamboo.projectName}.SetParameters.xml -setParam:"name='IIS Web Application Name',value=${bamboo.siteName}"

Using the above string in Arguments gives an error Unrecognized argument '"-setParam:"name='IIS Web Application Name',value=SiteName""'. All arguments must begin with "-".

I can use a Script task and get it to work but then the plan does not see MSDeploy as a requirement.

call "%bamboo_capability_system_builder_command_MSDeploy_V3%" -verb:sync -dest:auto,wmsvc=https://%bamboo_wmsHostname%:%bamboo_wmsPort%/msdeploy.axd?site=%bamboo_siteName%,userName=%bamboo_wmsUser%,password=%bamboo_wmsPassword%,authtype=Basic,includeAcls=False -allowUntrusted:True -setParamFile:%bamboo_projectName%.SetParameters.xml -setParam:name='IIS Web Application Name',value=%bamboo_siteName%

There is a similar question that was recently posted to but there isn't an answer yet.

1 answer

Same problem here. Any workaround?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Dec 10, 2018 in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

188 views 4 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you