[#33] test: migration > test > build 테스트

This commit is contained in:
Hanbin Lee
2023-03-03 01:28:34 +09:00
parent 54c4481031
commit 42c8b3df14
2 changed files with 18 additions and 17 deletions

View File

@@ -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'
}
}
}
}

View File

@@ -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
echo "================ 2. Flyway Validate ============"
./gradlew :db:flywayValidate -Dconfig=$1
echo "================ 3. Flyway Validate ============"
./gradlew :db:flywayMigrate -Dconfig=$1