how to automate mssql queries local to dev server with jenkins?
give some tutorials or document
how to automate mssql queries local to dev server with jenkins?
give some tutorials or document
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajkiran SwainPosted Apr 24, 2023, 12:08 PM
To automate MSSQL queries local to a dev server with Jenkins, you can use the following steps:
Install the MS SQL Server Plugin for Jenkins: Go to "Manage Jenkins" -> "Manage Plugins" -> "Available" tab -> Search for "MS SQL Server Plugin" -> Install.
Configure the MS SQL Server Plugin: Go to "Manage Jenkins" -> "Configure System" -> "MS SQL Server" section -> Add your SQL Server credentials and the name of the database you want to run queries against.
Create a Jenkins job: Go to the Jenkins dashboard -> "New Item" -> Enter a name for your job -> Select "Freestyle project" -> Click "OK".
Configure the job: Under "Source Code Management", select your version control system (e.g. Git) and enter the repository URL. Under "Build", add an "Execute Windows batch command" step and enter your SQL query.
Save and run the job: Click "Save" to save your job configuration and then click "Build Now" to run the job. The MS SQL Server Plugin will connect to your database, run the query, and output the results in the Jenkins console.
For more detailed instructions and examples, you can refer to the following documentation: