агент
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 {
|
||||
agent {
|
||||
docker {
|
||||
image 'maven:3.8-openjdk-18'
|
||||
args '-v $HOME/.m2:/root/.m2'
|
||||
}
|
||||
agent {
|
||||
docker {
|
||||
image 'maven:3.9.5-eclipse-temurin-17-alpine'
|
||||
args '-v /root/.m2:/root/.m2'
|
||||
}
|
||||
}
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
checkout scm
|
||||
sh './mvnw compile'
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'mvn -B -DskipTests clean package'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
sh './mvnw test'
|
||||
junit '**/target/surefire-reports/TEST-*.xml'
|
||||
}
|
||||
}
|
||||
stage('Package') {
|
||||
steps {
|
||||
sh './mvnw package -DskipTests'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue