forked from greatscottgadgets/luna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
32 lines (32 loc) · 850 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
pipeline {
agent {
dockerfile {
additionalBuildArgs '--build-arg CACHEBUST=$(date +%s)'
args '--group-add=46 --device-cgroup-rule="c 189:* rmw" -v /dev/bus/usb:/dev/bus/usb'
}
}
stages {
stage('Build') {
steps {
sh './ci-scripts/build.sh'
}
}
stage('Test') {
steps {
sh './ci-scripts/configure-hubs.sh --off'
retry(3) {
sh './ci-scripts/test.sh'
}
}
}
}
post {
always {
sh './ci-scripts/configure-hubs.sh --reset'
cleanWs(cleanWhenNotBuilt: false,
deleteDirs: true,
disableDeferredWipeout: true,
notFailBuild: true)
}
}
}