-
Notifications
You must be signed in to change notification settings - Fork 5
/
Jenkinsfile
36 lines (32 loc) · 945 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
pipeline {
agent {
label 'maven-docker'
}
stages {
stage('Checkstyle') {
steps {
sh '''
mvn -B compile
'''
}
post {
always {
checkstyle canComputeNew: false, canRunOnFailed: true, defaultEncoding: '', healthy: '20', pattern: '**/checkstyle-result.xml', shouldDetectModules: true, thresholdLimit: 'high', unHealthy: '50'
}
}
}
stage('Test') {
steps {
sh '''
mvn -B test
'''
}
}
}
post {
always {
junit 'target/surefire-reports/*.xml'
step([$class: 'TelegramBotPublisher', message: "The project ${JOB_NAME} has failed ${BUILD_URL}", whenAborted: true, whenFailed: true, whenSuccess: true, whenUnstable: true])
}
}
}