CI/CD fix
Some checks failed
Hedgehog_server_CI/ServerMonitorBot/pipeline/head There was a failure building this commit
Hedgehog_server_CD/ServerMonitorBot/pipeline/head There was a failure building this commit

This commit is contained in:
2023-11-20 22:02:23 +03:00
parent 204dbc5f73
commit 94485ab9d2
3 changed files with 8 additions and 6 deletions

View File

@@ -19,7 +19,10 @@ pipeline {
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
sh 'mvn -B -DskipTests -X clean package spring-boot:repackage' configFileProvider(
[configFile(fileId: 'maven-settings', variable: 'SETTINGS_XML_GLOBAL')]) {
sh 'mvn -B -DskipTests -X -s $MAVEN_SETTINGS clean package spring-boot:repackage'
}
} }
} }
stage('Deploy') { stage('Deploy') {

View File

@@ -8,7 +8,10 @@ pipeline {
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
sh 'mvn -B -DskipTests -X clean package spring-boot:repackage' configFileProvider(
[configFile(fileId: 'maven-settings', variable: 'SETTINGS_XML_GLOBAL')]) {
sh 'mvn -B -DskipTests -X -s $MAVEN_SETTINGS clean package spring-boot:repackage'
}
} }
} }
} }

View File

@@ -103,10 +103,6 @@
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>ru.ldeloff.servermonitorbot.ServerMonitorBotApplication</mainClass>
<layout>JAR</layout>
</configuration>
<executions> <executions>
<execution> <execution>
<goals> <goals>