CI/CD fix
parent
204dbc5f73
commit
94485ab9d2
|
@ -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') {
|
||||||
|
|
|
@ -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'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
4
pom.xml
4
pom.xml
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue