агент
Hedgehog_server/ServerMonitorBot/pipeline/head There was a failure building this commit Details

devops
L_DelOff 2023-11-19 22:02:30 +03:00
parent 742d246cdb
commit 0f9721f562
1 changed files with 10 additions and 22 deletions

18
Jenkinsfile vendored
View File

@ -1,26 +1,14 @@
pipeline {
agent {
docker {
image 'maven:3.8-openjdk-18'
args '-v $HOME/.m2:/root/.m2'
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('Test') {
steps {
sh './mvnw test'
junit '**/target/surefire-reports/TEST-*.xml'
}
}
stage('Package') {
steps {
sh './mvnw package -DskipTests'
sh 'mvn -B -DskipTests clean package'
}
}
}