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' } }