campus-ops-java/Jenkinsfile
2026-11-24 11:36:52 +08:00

25 lines
451 B
Groovy

pipeline {
agent any
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Build & Test') {
steps {
sh 'mvn -B test'
}
}
}
post {
always {
junit allowEmptyResults: true, testResults: '**/target/surefire-reports/*.xml,**/target/failsafe-reports/*.xml'
deleteDir()
}
}
}