-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
43 lines (42 loc) · 1.29 KB
/
Jenkinsfile
File metadata and controls
43 lines (42 loc) · 1.29 KB
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
37
38
39
40
41
42
43
pipeline {
agent none
stages {
stage('Build') {
failFast true
parallel {
stage('Maven') {
steps {
sh "mvn clean verify org.pitest:pitest-maven:mutationCoverage -P git-commit"
}
agent any
tools {
jdk 'jdk25'
maven 'M3'
}
post {
success {
archiveArtifacts 'ninbot-app/target/*.jar'
}
always {
junit allowEmptyResults: true, stdioRetention: 'ALL', testResults: '**/target/surefire-reports/TEST-*.xml'
recordCoverage ignoreParsingErrors: true, skipPublishingChecks: true, tools: [[parser: 'JACOCO', pattern: 'ninbot-test-coverage/**/jacoco.xml'], [parser: 'PIT']]
}
}
}
stage('Docker') {
steps {
sh "docker build --no-cache ."
}
agent {
label 'buildx'
}
}
}
}
}
post {
regression {
emailext attachLog: true, body: "${env.BUILD_URL}", compressLog: true, recipientProviders: [buildUser(), developers()], subject: "${env.JOB_NAME} - Build # ${env.BUILD_NUMBER} - ${currentBuild.currentResult}!"
}
}
}