CI/CD fix
parent
204dbc5f73
commit
94485ab9d2
|
@ -19,7 +19,10 @@ pipeline {
|
|||
stages {
|
||||
stage('Build') {
|
||||
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') {
|
||||
|
|
|
@ -8,7 +8,10 @@ pipeline {
|
|||
stages {
|
||||
stage('Build') {
|
||||
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -103,10 +103,6 @@
|
|||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<mainClass>ru.ldeloff.servermonitorbot.ServerMonitorBotApplication</mainClass>
|
||||
<layout>JAR</layout>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
|
|
Loading…
Reference in New Issue