To execute a SQL file in a Jenkins pipeline on PostgreSQL, you can use the following script:
pipeline {
agent any
stages {
stage('Clone Git Repository') {
steps {
git url: '', branch: ''
}
}
read full: https://thedbadmin.com/jenkins-pipeline-script-for-sql-file-execution-on-postgresql/
Top comments (0)