ci: try safe_checkout if unsafe_checkout fails (#34018)

fallback
pull/34020/head
Maxime Desroches 5 months ago committed by GitHub
parent e8a2f199e8
commit 3dc970960d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      Jenkinsfile
  2. 4
      selfdrive/test/setup_device_ci.sh

2
Jenkinsfile vendored

@ -193,7 +193,7 @@ node {
parallel (
// tici tests
'onroad tests': {
deviceStage("onroad", "tici-needs-can", [], [
deviceStage("onroad", "tici-needs-can", ["UNSAFE=1"], [
// TODO: ideally, this test runs in master-ci, but it takes 5+m to build it
//["build master-ci", "cd $SOURCE_DIR/release && TARGET_DIR=$TEST_DIR $SOURCE_DIR/scripts/retry.sh ./build_devel.sh"],
step("build openpilot", "cd system/manager && ./build.py"),

@ -115,8 +115,8 @@ if [ ! -d "$SOURCE_DIR" ]; then
fi
if [ ! -z "$UNSAFE" ]; then
echo "doing unsafe checkout"
unsafe_checkout
echo "trying unsafe checkout"
unsafe_checkout || safe_checkout
else
echo "doing safe checkout"
safe_checkout

Loading…
Cancel
Save