агент

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' args '-v $HOME/.m2:/root/.m2'
} }
} }
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
sh 'mvn -B clean install' checkout scm
sh './mvnw compile'
}
}
stage('Test') {
steps {
sh './mvnw test'
junit '**/target/surefire-reports/TEST-*.xml'
}
}
stage('Package') {
steps {
sh './mvnw package -DskipTests'
}
} }
} }
}
}
}