From 431e7779889c9e50c40507693c3376d921f3eaa7 Mon Sep 17 00:00:00 2001 From: L_DelOff Date: Tue, 21 Nov 2023 22:15:43 +0300 Subject: [PATCH] add application.yml --- Jenkinsfile_CD | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile_CD b/Jenkinsfile_CD index 261dd6d..c0a0d4d 100644 --- a/Jenkinsfile_CD +++ b/Jenkinsfile_CD @@ -24,6 +24,9 @@ pipeline { } stage('Build') { steps { + withCredentials([file(credentialsId: 'SERVERMONITORBOT_APPLICATION_YAML', variable: 'application_yaml')]) { + sh "cp \$application_yaml /src/main/resources/application.yml" + } sh 'mvn -B -DskipTests -X clean package spring-boot:repackage' } }