-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
64 lines (35 loc) · 867 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
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
54
55
56
57
58
59
60
61
62
63
node {
currentBuild.result = "SUCCESS"
try {
stage('Checkout'){
checkout scm
}
stage('Molecule syntax'){
sh 'make syntax'
}
stage('Molecule create'){
sh 'make create'
}
stage('Molecule converge'){
sh 'make converge'
}
stage('Molecule idempotence'){
sh 'make idempotence'
}
stage('Molecule verify'){
sh 'make verify'
}
stage('Molecule Delete'){
sh 'make delete'
}
}
catch (err) {
currentBuild.result = "FAILURE"
mail body: "project build error is here: ${env.BUILD_URL}" ,
from: '[email protected]',
replyTo: '[email protected]',
subject: 'project build failed',
to: '[email protected]'
throw err
}
}