From dbf8b046b01b628125ad7569280990abc9c41e14 Mon Sep 17 00:00:00 2001 From: Hanbin Lee Date: Sun, 12 Mar 2023 19:20:39 +0900 Subject: [PATCH] =?UTF-8?q?[#33]=20test:=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20=EC=9A=94=EC=86=8C=20=EC=A0=9C=EA=B1=B0=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile-service | 24 +++++++++++------------- db/flyway.conf | 2 +- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/Jenkinsfile-service b/Jenkinsfile-service index c383dac..aaefe1b 100644 --- a/Jenkinsfile-service +++ b/Jenkinsfile-service @@ -9,7 +9,6 @@ pipeline { sh 'printenv' FLYWAY_CONFIG = '/home/ec2-user/flyway/flyway.conf' - MIGRATION_SCRIPT = './script/db_migration.sh' } } } @@ -20,21 +19,20 @@ pipeline { 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' -// } -// } + stage('Test') { + steps { + sh './gradlew clean :dongne-service-api:test' + } + } + + stage('Build') { + steps { + sh './gradlew clean :dongne-service-api:build -x test' + } + } } } \ No newline at end of file diff --git a/db/flyway.conf b/db/flyway.conf index 621000e..f5d1ddc 100644 --- a/db/flyway.conf +++ b/db/flyway.conf @@ -6,5 +6,5 @@ flyway.locations=filesystem:db/migration,db/seed flyway.baselineOnMigrate=true flyway.baselineVersion=000 -flyway.ignoreMigrationPatterns=*:pending +# flyway.ignoreMigrationPatterns=*:pending flyway.cleanDisabled=false \ No newline at end of file