25 lines
451 B
Groovy
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()
|
|
}
|
|
}
|
|
}
|