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
|
pipeline {
agent any
stages {
stage('Build') {
steps {
sh './autogen && ./configure && make'
}
}
stage('Tests') {
steps {
sh 'yes | ./spatch.opt --testall'
}
}
}
post {
failure {
emailext (
subject: "Coccinelle CI failure: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
body: """
Failure: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'.
Check console output at ${env.BUILD_URL}
""",
recipientProviders: [[$class: 'DevelopersRecipientProvider']]
)
}
}
}
|