SQL DB Build & Deploy - Bit-bucket & Jenkins
Ken_Vitt
Posts: 10 New member
Database - SQL Server
Version control - GIT/Bit bucket
Automation - Jenkins pipeline.
Question/task - I need to build sql database project & deploy thru jenkins pipeline.
Currently we manually build & publish the database but i have scripts which i can use to build(dacpac) & publish to the database but problem scripts only work in VS(visual studio) command prompt.
Build SQL database project thru Jenkins - Is it possible, if so how ?
Publish SQL database project thru Jenkins - Is it possible, If so how.
Please help me understand the process involved.
Thanks!
Version control - GIT/Bit bucket
Automation - Jenkins pipeline.
Question/task - I need to build sql database project & deploy thru jenkins pipeline.
Currently we manually build & publish the database but i have scripts which i can use to build(dacpac) & publish to the database but problem scripts only work in VS(visual studio) command prompt.
Build SQL database project thru Jenkins - Is it possible, if so how ?
Publish SQL database project thru Jenkins - Is it possible, If so how.
Please help me understand the process involved.
Thanks!
Answers
You can use the RedGate SQL Change Automation Jenkins plugin in your deployment pipeline to do that.
Here is an example Jenkins configuration file - https://documentation.red-gate.com/sca/deploying-database-changes/add-ons/jenkins/example-jenkins-ci-cd-pipeline
Does this help?
Regards,
Maya
For instance there is MSBuild plugin available within Jenkins. So trying to check if that's all i need or separate software SQL Change Automation tool needed. If we need to install Red-gate SQL Change Automation as a tool then i have to deal with compliance issues. Anyway let me know.
You don't need to install SQL Change Automation with the Jenkins plugin. The agent will automatically install the SCA PowerShell module from the Powershell gallery on each run.
Regards,
Maya
I mean this module https://www.powershellgallery.com/packages/SqlChangeAutomation/4.2.20085.17694. It is available online and the agent will download and install it on each run.
Here is the error msg
Product Manager
Redgate Software
Product Manager
Redgate Software