агент
Hedgehog_server/ServerMonitorBot/pipeline/head There was a failure building this commit
Details
Hedgehog_server/ServerMonitorBot/pipeline/head There was a failure building this commit
Details
parent
742d246cdb
commit
0f9721f562
|
@ -1,27 +1,15 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'maven:3.8-openjdk-18'
|
image 'maven:3.9.5-eclipse-temurin-17-alpine'
|
||||||
args '-v $HOME/.m2:/root/.m2'
|
args '-v /root/.m2:/root/.m2'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
checkout scm
|
sh 'mvn -B -DskipTests clean package'
|
||||||
sh './mvnw compile'
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
stage('Test') {
|
|
||||||
steps {
|
|
||||||
sh './mvnw test'
|
|
||||||
junit '**/target/surefire-reports/TEST-*.xml'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Package') {
|
|
||||||
steps {
|
|
||||||
sh './mvnw package -DskipTests'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue