How to delpoy with Bamboo and DLM Automation
TimothyCloud
Posts: 6 New member
I cannot seem to find an easy way to deploy a build I created in Bamboo. First, I created a database build, using my local copy of the git RedGate code that is used to link up to my database for syncing. That build works great in Bamboo, but now I want to deploy it onto an actual server. What is the easiest way to do this? Whenever I try to build a deployment, I get the error "You can not deploy to TEST. You have not yet configured the tasks". However, the tasks I am wanting to configure is the same as the Build task, i.e. the DLM Automation Build. I just want it to build the database on either to local or remote SQL Server. What am I missing here?
Tagged:
Answers
Then you need to create a deployment plan to deploy the package to the other environments.
I can't find a SQL Server or plug-in walk through - but I wrote this blog post (first of a 2 parter) which talks you through a similar process for Oracle databases using command lines and powershell scripts etc.
The Bamboo bits are mostly the same.
http://workingwithdevs.com/continuous-delivery-oracle-databases-bamboo-redgate-1/
DevOps Mentor and Coach
Director of DLM Consultants
Creator of Speaking Mentors
Microsoft Data Platform MVP
Friend of Redgate
Twitter / LinkedIn
In brief:
What do you want to achieve?
IF (Build once, deploy immediately to test only){
functionality of Bamboo.
ELSE IF (Build once, deploy to multiple environments on demand at the click of a button){
ELSE {
I hope that helps.
DevOps Mentor and Coach
Director of DLM Consultants
Creator of Speaking Mentors
Microsoft Data Platform MVP
Friend of Redgate
Twitter / LinkedIn
DevOps Mentor and Coach
Director of DLM Consultants
Creator of Speaking Mentors
Microsoft Data Platform MVP
Friend of Redgate
Twitter / LinkedIn
I have a database, actually several of them, that I am attempting to get Bamboo to Build, Test, Deploy into another SQL Server environment. I get the build process done...not as concerned about TEST yet, but I need the results of that build (which I store locally as a NuGet package) to now deploy on another SQL Server that is not local to the Bamboo server. Isn't there a way I can do that using the Command Line or Powershell or similar method? That's my next step. Build--<maybe test>--Deploy then I will come back and start working on putting something like that to work in a real task, such as...developer creates new stored proc and puts it into SQL Source Control....trigger is fired to automate the Bamboo Build and Test and Deploy into PreProd....and then I'll really need some help I would imagine.
2. Install Redgate DLM Automation on the target agents.
3. Your deployment steps will: Copy Nuget to target agent, run DLM Automation to deploy NuGet to target DB.
Let me know if you'd like to schedule a call to discuss in more detail.
Alternatively this is all covered on a DLM Workshop we are running later this month (EU timezone):
http://dlmconsultants.com/dlm-workshops/#schedule
(On day 2 we'll cover the DLM Automation build/test functionality and we'll automate it with TeamCity. On day 3 we'll look at SQL Server Release Management using Octo Deploy. However, the principles of both days will apply to Bamboo too.)
DevOps Mentor and Coach
Director of DLM Consultants
Creator of Speaking Mentors
Microsoft Data Platform MVP
Friend of Redgate
Twitter / LinkedIn
1.) On 1 server, I have manually deployed all their databases using a repository and SQL Source control.
2.) I have been given another server instance of SQL to try and "deploy" to as a target.
3.) On my 1 server, I installed RedGate DLM Automation, Bamboo, Octopus and considering Team City.\
4.) On my target server, I don't have access beyond SQL Server, and I need to know if that is my next request from the customer?
What we are attempting is to have an automated Build of the database stored in Redgate Source Control onto a server which has never ran anything other than SQL Server. Is that even possible?
Thanks!
dlmconsultants.com
However, to answer the technical question:
The question is can you talk to SQL Server from server 1. If you can connect to it via SSMS/SQL Compare etc then you can run all the DLM Automation build and deployment processes from that machine and do not need to install anything on target server.
However, if server1 cannot talk to target server you will need to install the TeamCity/Bamboo/Octopus agent somewhere that can talk to target server. Installing it actually on target server is an option but any server that has access to target server should be sufficient.
(And install DLM Automation on whatever machine you install the agent on.)
DevOps Mentor and Coach
Director of DLM Consultants
Creator of Speaking Mentors
Microsoft Data Platform MVP
Friend of Redgate
Twitter / LinkedIn
DevOps Mentor and Coach
Director of DLM Consultants
Creator of Speaking Mentors
Microsoft Data Platform MVP
Friend of Redgate
Twitter / LinkedIn