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

This widget could not be displayed.

Same problem here. Any workaround?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

197 views 1 3
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