From 1641a4a9c6401be47c49a6d4bc2dacbf0cf88deb Mon Sep 17 00:00:00 2001 From: luxic Date: Thu, 23 Oct 2025 11:16:09 +0700 Subject: [PATCH] add prod profile --- Jenkinsfile | 4 ++-- src/main/resources/application-prod.properties | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/application-prod.properties 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