add application.yml
Some checks failed
Hedgehog_server_CD/ServerMonitorBot/pipeline/head There was a failure building this commit
Hedgehog_server_CI/ServerMonitorBot/pipeline/head There was a failure building this commit

This commit is contained in:
2023-11-21 22:15:43 +03:00
parent 8b8833cd2b
commit 431e777988

View File

@@ -24,6 +24,9 @@ pipeline {
} }
stage('Build') { stage('Build') {
steps { 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' sh 'mvn -B -DskipTests -X clean package spring-boot:repackage'
} }
} }