diff --git a/Jenkinsfile-service b/Jenkinsfile-service index acb43e8..83f30f2 100644 --- a/Jenkinsfile-service +++ b/Jenkinsfile-service @@ -1,8 +1,5 @@ pipeline { agent any -// tools { -// jdk("openjdk-17") -// } stages { stage('Init') { @@ -26,16 +23,16 @@ pipeline { } } -// 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/script/db_migration.sh b/script/db_migration.sh index 25bc756..ed9eaa7 100644 --- a/script/db_migration.sh +++ b/script/db_migration.sh @@ -1,7 +1,11 @@ #!/bin/bash -echo "#### Flyway Config File: $1" - +echo "================ 1. Flyway Info ================" ./gradlew :db:flywayInfo -Dconfig=$1 -./gradlew :db:flywayValidate -Dconfig=$1 \ No newline at end of file +echo "================ 2. Flyway Validate ============" +./gradlew :db:flywayValidate -Dconfig=$1 + +echo "================ 3. Flyway Validate ============" +./gradlew :db:flywayMigrate -Dconfig=$1 +