-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathJenkinsfile
45 lines (43 loc) · 1.01 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
/*
* Jenkinsfile
* Test EPITECH plateforme collaborative étudiant
* florent.poinsard@epitech.eu
*/
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building the project'
sh 'make fclean && make > make_log.txt'
}
}
stage('Coding_Style') {
steps {
echo 'Check the coding style'
sh 'coding_style > coding_style_log.txt'
}
}
stage('Test') {
steps {
sh 'make tests_auto'
}
}
stage('Report') {
steps {
echo 'Sending report to student'
}
}
}
post {
always {
archiveArtifacts artifacts: '*_log.txt', fingerprint: true
}
failure {
emailext attachLog: true, attachmentsPattern: '*_log.txt', body: 'Check out the given files.', subject: 'PSU_42sh_2017 [FAILURE]', to: 'florent.poinsard@epitech.eu, florian.davasse@epitech.eu'
}
success {
emailext attachLog: true, attachmentsPattern: '*_log.txt', body: 'Check out the given files.', subject: 'PSU_42sh_2017 [SUCCESS]', to: 'florent.poinsard@epitech.eu, florian.davasse@epitech.eu'
}
}
}