How to publish ASP.NET MVC 3 app using Bamboo ?

I am using Bamboo to completely automate the process. I checkout the latest code from the SVN repository, build and run unit test cases. Its working fine. But if someone could guide how to publish the app to a specified location. If I add task and select the Task Type as 'Deployment', I don't see any visual studio option to publish.

2 answers

There may not be a plugin for that yet. You should be able to script the deployment as you would from the command line using script, or command. You can add dependencies (such as msdeploy which I think is the name of the exe) and then use them in the deployment job. I haven't used msdeploy to deploy via IIS as the .NET project I worked on did not deploy that way, we robocopied everything from the deployment location to the server location.

One thing you might check is using a build task types (or all task types) to find the msbuild command that will deploy. You can use any task type in your deployment project, the "categories" are just there to narrow the list so it's easier to find the task type you're looking for. Just because you're doing a deployment plan doesn't mean you can't use builder tasks.

http://technet.microsoft.com/en-us/library/dd569106%28v=ws.10%29.aspx this page should set you up for success. You'll have to figure out exactly how to call it and there may be some other things that will make this complicated. If it was easy we'd all be doing it. :)

It is also possible that you'll have to move the components to deploy onto the destination server and ssh in to execute the msdeploy command on that server. That does seem counter intuitive to me but I've never worked in an environment where intuitiveness drove design.

If you can't get ssh to work there are other ways to script it using cscript or wscript.

I'd be surprised if you didn't have to slay some authentication or trust dragons along the way as well.

Good Luck,

GJ

Thanks a lot:)

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,096 views 0 5
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot