агент

devops
L_DelOff 2023-11-19 20:33:11 +03:00
parent 7838e60a82
commit edd29ea029
1 changed files with 18 additions and 7 deletions

25
Jenkinsfile vendored
View File

@ -5,12 +5,23 @@ pipeline {
args '-v $HOME/.m2:/root/.m2'
}
}
stages {
stage('Build') {
steps {
sh 'mvn -B clean install'
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'
}
}
}
}
}
}