-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathJenkinsfile
52 lines (47 loc) · 908 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
pipeline {
agent {
node {
label 'master'
}
}
stages {
stage('Build & Test') {
parallel {
stage('Build') {
agent {
node {
label 'el7'
}
}
steps {
timeout(time: 30, activity: true) {
sh 'make rpms'
}
stash(name: 'RPMs', includes: '_topdir/RPMS/noarch/*.rpm')
}
}
stage('Unit Test') {
agent {
node {
label 'el7'
}
}
steps {
sh 'nosetests || true'
}
}
}
}
stage('Artifacts') {
agent {
node {
label 'master'
}
}
steps {
unstash 'RPMs'
archiveArtifacts(artifacts: '_topdir/RPMS/noarch/*.rpm', fingerprint: true, onlyIfSuccessful: true)
}
}
}
}