forked from CEA-Leti/wsnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
executable file
·53 lines (44 loc) · 1.13 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!groovy
/**
* Nightly tests
* Clean build (not incremental)
* Run everything
*/
node {
try{
stage('Git Fetch') { // for display purposes
build job: 'Git_Fetch';
}
stage('Build CMake') {
build job: 'Build_CMake_GCC';
}
stage('Build Make') {
build job: 'Build_GCC';
}
stage('CppCheck Test') {
build job: 'CppCheck_Test';
}
stage('Integration Test') {
build job: 'Integration_Test';
}
stage('Test Integration Memchek (Valgrind)') {
build job: 'Test_Integration_Memchek_Valgrind';
}
notifySuccessful();
} catch (e) {
currentBuild.result = "FAILED";
notifyFailed();
throw e;
}
}
def notifySuccessful() {
// Do nothing
}
def notifyFailed() {
emailext (
subject: "[WSNET][Jenkins] FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
body: """<p>FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':</p>
<p>Check console output at "<a href='${env.BUILD_URL}'>${env.JOB_NAME} [${env.BUILD_NUMBER}]</a>"</p>""",
to: "Luiz.SURATYFILHO@cea.fr"
)
}