Files
Jacob Graves 86734a4827 Jenkins CI (#496)
* jenkins: initial commit

* dockerfile: add git and libbtbb installations to prerequisites

* jenkins: add usbhub installation to docker, reset port before flashing ubertooth firmware

* jenkins: move builds/tests to scripts in ci-scripts

* jenkins: fix typo

* jenkins: fix another typo

* jenkins: specify usbhub id for dual hub setup

* jenkins: update cleanup, test host after testing firmware

* jenkins: turn unused usb hub ports off for testing

* jenkins: restructure test to better detect faulty firmware

* break firmware for ci

* jenkins: use relative path when specifying DFU_TOOL

* jenkins: remove intentional infinite loop to fix build

* jenkins: remove unneeded options and environment sections from build

* update usbhub driver and enable the --disable-i2c option

* ci: disable privileged mode and enable device cgroup rule for usb in docker

* ci: remove redundancies from Dockerfile

* ci: update comments in Dockerfile
2022-06-08 13:20:49 -04:00

36 lines
926 B
Groovy

pipeline {
agent {
dockerfile {
args '--group-add=46 --device-cgroup-rule="c 189:* rmw" -v /dev/bus/usb:/dev/bus/usb'
}
}
stages {
stage('Build (Host)') {
steps {
sh './ci-scripts/build-host.sh'
}
}
stage('Build (Firmware)') {
steps {
sh './ci-scripts/build-firmware.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)
}
}
}