-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Jenkinsfile
49 lines (49 loc) · 1.64 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
pipeline {
agent any
stages {
stage('Build Docker Image') {
steps {
sh 'docker build -t hackrf https://github.com/greatscottgadgets/hackrf.git'
}
}
stage('Test Suite') {
agent {
docker {
image 'hackrf'
reuseNode true
args '--group-add=20 --group-add=46 --device-cgroup-rule="c 189:* rmw" --device-cgroup-rule="c 166:* rmw" -v /dev/bus/usb:/dev/bus/usb -e TESTER=0000000000000000325866e629a25623 -e EUT=RunningFromRAM'
}
}
steps {
sh './ci-scripts/install-host.sh'
sh './ci-scripts/install-firmware.sh'
sh 'hubs all off'
retry(3) {
sh './ci-scripts/test-host.sh'
}
retry(3) {
sh './ci-scripts/test-firmware-program.sh'
}
sh './ci-scripts/test-firmware-flash.sh'
sh 'python3 ci-scripts/test-debug.py'
retry(3) {
sh 'python3 ci-scripts/test-transfer.py tx'
}
retry(3) {
sh 'python3 ci-scripts/test-transfer.py rx'
}
sh 'hubs all off'
sh 'python3 ci-scripts/test-sgpio-debug.py'
sh 'hubs all reset'
}
}
}
post {
always {
cleanWs(cleanWhenNotBuilt: false,
deleteDirs: true,
disableDeferredWipeout: true,
notFailBuild: true)
}
}
}