forked from Blurt-Blockchain/blurt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
27 lines (27 loc) · 824 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
#!groovy
pipeline {
agent any
stages {
stage('Build') {
steps {
parallel ( "Build tests":
{
sh 'ciscripts/triggertests.sh'
step([$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: '**/cobertura/coverage.xml', failUnhealthy: false, failUnstable: false, maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false])
},
"Build docker image": {
sh 'ciscripts/triggerbuild.sh'
}, failFast: true )
}
}
}
post {
success {
sh 'ciscripts/buildsuccess.sh'
}
failure {
sh 'ciscripts/buildfailure.sh'
slackSend (color: '#ff0000', message: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
}
}
}