diff --git a/Jenkinsfile b/Jenkinsfile index cf56121..50789c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } } diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties new file mode 100644 index 0000000..0e5dc12 --- /dev/null +++ b/src/main/resources/application-prod.properties @@ -0,0 +1,3 @@ +spring.datasource.url=jdbc:postgresql://192.168.56.1:5432/mai-queue +spring.datasource.username=postgres +spring.datasource.password=password \ No newline at end of file