Build Bamboo from Bitbucket, Deploy to Azure Cloud

2019-03-31 23:24发布

问题:

I'm looking for a solution using all Atlassian products similar to Visual Studio Online to build and deploy a .NET web application. Basic workflow would be:

  1. Merge to Master (Git on Bitbucket)
  2. Test/Build using Bamboo
  3. Deploy to Azure Cloud (not Web Sites, not Virtual Machines)

Visual Studio Online does this quite easily (hosted build controller, deploy), its all Microsoft so it works together nicely. I know Azure works with any Git repo directly, but I'm unsure how to bring the build and deploy steps into play together using Atlassian services.

回答1:

Use the Azure Command Line interfaces available on this page:

http://azure.microsoft.com/en-us/downloads/

I don't know Bamboo, but presumably there's a post-build step. Embed the relevant commands to do the deployment. Ask here for details as you get deeper.

Another option is the PowerShell cmdlets, though those would be harder to embed in your tools (I think). Same download page.