mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-22 11:53:54 +08:00
* let's see if this works * fix build_release actions job * does jenkins like this config * separate jenkinsfile for release build * fix devel build * devel build should work * always pass that for now * run modeld replay * release2 build will be a separate PR * pass env to phone shell * force checkout * run on real jenkins eons * add timeout * rsync * more timeout * trailing slash * fix branch detection * debug * not sure why paramiko doesn't pass it through * newline * CI_PUSH * still not passing it * test branch * should be good now
47 lines
1.2 KiB
Groovy
47 lines
1.2 KiB
Groovy
pipeline {
|
|
agent {
|
|
docker {
|
|
image 'python:3.7.3'
|
|
args '--user=root'
|
|
}
|
|
}
|
|
environment {
|
|
COMMA_JWT = credentials('athena-test-jwt')
|
|
CI_PUSH = "${env.BRANCH_NAME == 'master' ? 'master-ci' : ''}"
|
|
}
|
|
|
|
stages {
|
|
stage('On-device Tests') {
|
|
parallel {
|
|
|
|
stage('Build') {
|
|
steps {
|
|
lock(resource: "", label: 'eon', inversePrecedence: true, variable: 'eon_ip', quantity: 1){
|
|
timeout(time: 30, unit: 'MINUTES') {
|
|
dir(path: 'selfdrive/test') {
|
|
sh 'pip install paramiko'
|
|
sh 'python phone_ci.py "cd release && ./build_devel.sh"'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
stage('Replay Tests') {
|
|
steps {
|
|
lock(resource: "", label: 'eon2', inversePrecedence: true, variable: 'eon_ip', quantity: 1){
|
|
timeout(time: 60, unit: 'MINUTES') {
|
|
dir(path: 'selfdrive/test') {
|
|
sh 'pip install paramiko'
|
|
sh 'python phone_ci.py "cd selfdrive/test/process_replay && ./camera_replay.py"'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|