ci: try safe_checkout if unsafe_checkout fails (#34018)

fallback
This commit is contained in:
Maxime Desroches 2024-11-13 14:40:42 -08:00 committed by GitHub
parent e8a2f199e8
commit 3dc970960d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

2
Jenkinsfile vendored
View File

@ -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"),

View File

@ -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