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

This widget could not be displayed.

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

This widget could not be displayed.

Thanks a lot:)

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 12 hours ago in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

60 views 0 8
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