pipeline { agent any stages { stage('Init') { steps { script { sh 'whoami' sh 'printenv' FLYWAY_CONFIG = '/home/ec2-user/flyway/flyway.conf' } } } stage('DB Migrate') { steps { flywayrunner installationName: 'flywaytool-jenkins', flywayCommand: 'info migrate validate', commandLineArgs: "-configFiles=${FLYWAY_CONFIG}", credentialsId: 'ecb29499-7272-4e8b-b3ab-a7a3ab7eafab', url: '', locations: "filesystem:${WORKSPACE}/db/migration" } } stage('Test') { steps { sh './gradlew clean :dongne-service-api:test' } } stage('Build') { steps { sh './gradlew clean :dongne-service-api:build -x test' } } } }