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 { stages {
stage('Build') { stage('Build') {
steps { steps {
sh 'mvn -B -DskipTests -X clean install' sh 'mvn -B -DskipTests -X clean package spring-boot:repackage'
} }
} }
stage('Deploy') { stage('Deploy') {

View File

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

21
pom.xml
View File

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

View File

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