[#33] fix: jenkinsfile, flyway 설정내용 수정

This commit is contained in:
Hanbin Lee
2023-03-12 18:57:09 +09:00
parent c0fcefa8c0
commit 2c8b4c9a09
4 changed files with 19 additions and 7 deletions

View File

@@ -25,7 +25,7 @@ pipeline {
commandLineArgs: "-configFiles=${FLYWAY_CONFIG}",
credentialsId: 'ecb29499-7272-4e8b-b3ab-a7a3ab7eafab',
url: '',
locations: "${WORKSPACE}/db/migration"
locations: "filesystem:${WORKSPACE}/db/migration"
}
}

View File

@@ -6,10 +6,18 @@
<br>
## Specification
- java 17
- kotlin 1.6.21
- Spring Boot 2.7.0
- MySQL 8.0.21
- Lang
- java 17
- kotlin 1.6.21
- Framework
- Spring Boot 2.7.0
- DB
- MySQL 8.0.21
- Flyway(migration)
- CI/CD
- Jenkins
- Cloud Server
- AWS Lightsail(Amazon Linux2)
<br>

View File

@@ -2,4 +2,9 @@ flyway.url=jdbc:mysql://localhost:3306/dongne?autoreconnect=true&characterEncodi
flyway.user=root
flyway.password=beaniejoy
flyway.driver=com.mysql.cj.jdbc.Driver
flyway.locations=filesystem:db/migration,db/seed
flyway.locations=filesystem:db/migration,db/seed
flyway.baselineOnMigrate=true
flyway.baselineVersion=000
flyway.ignoreMigrationPatterns=*:pending
flyway.cleanDisabled=false

View File

@@ -8,4 +8,3 @@ echo "================ 2. Flyway Validate ============"
echo "================ 3. Flyway Migrate ============="
./gradlew :db:flywayMigrate -Dconfig=$1