CI/CD fix
Hedgehog_server_CI/ServerMonitorBot/pipeline/head There was a failure building this commit Details
Hedgehog_server_CD/ServerMonitorBot/pipeline/head This commit looks good Details

pull/31/head
L_DelOff 2023-11-20 21:47:54 +03:00
parent 8bdc56bd8a
commit 98bc9633be
4 changed files with 17 additions and 16 deletions

View File

@ -19,7 +19,7 @@ pipeline {
stages {
stage('Build') {
steps {
sh 'mvn -B -DskipTests -X clean install'
sh 'mvn -B -DskipTests -X clean package spring-boot:repackage'
}
}
stage('Deploy') {

View File

@ -8,7 +8,7 @@ pipeline {
stages {
stage('Build') {
steps {
sh 'mvn -B -DskipTests -X clean install'
sh 'mvn -B -DskipTests -X clean package spring-boot:repackage'
}
}
stage('Build docker') {

21
pom.xml
View File

@ -19,6 +19,7 @@
<db.url>${database.url}</db.url>
<db.user>${database.username}</db.user>
<db.password>${database.password}</db.password>
<start-class>ru.ldeloff.servermonitorbot.ServerMonitorBotApplication</start-class>
</properties>
<dependencies>
<dependency>
@ -100,19 +101,19 @@
</configuration>
</plugin>
<plugin>
<!-- Build an executable JAR -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>ru.ldeloff.servermonitorbot.ServerMonitorBotApplication</mainClass>
</manifest>
</archive>
<layout>JAR</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

View File

@ -2,9 +2,9 @@ spring:
application:
name: ServerMonitorBot
datasource:
url: @db.url@
username: @db.username@
password: @db.password@
url: @database.url@
username: @database.username@
password: @database.password@
jpa:
hibernate:
ddl-auto: none