add prod profile
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -3,13 +3,13 @@ pipeline {
|
||||
stages {
|
||||
stage ('Build') {
|
||||
steps {
|
||||
sh 'mvn -B -DSkipTests clean package'
|
||||
sh 'mvn -B -DSkipTests -Dspring.profiles.active=prod clean package'
|
||||
}
|
||||
}
|
||||
|
||||
stage ('Test') {
|
||||
steps {
|
||||
sh 'mvn test'
|
||||
sh 'mvn test -Dspring.profiles.active=prod'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
3
src/main/resources/application-prod.properties
Normal file
3
src/main/resources/application-prod.properties
Normal file
@@ -0,0 +1,3 @@
|
||||
spring.datasource.url=jdbc:postgresql://192.168.56.1:5432/mai-queue
|
||||
spring.datasource.username=postgres
|
||||
spring.datasource.password=password
|
||||
Reference in New Issue
Block a user