ci: retry transient SQLCipher asset downloads

This commit is contained in:
2026-08-11 23:45:28 +08:00
parent 9281a543c8
commit 04235762ea
Vendored
+5 -1
View File
@@ -98,8 +98,10 @@ PY
# Keep warnings/errors fatal while allowing the repository's existing # Keep warnings/errors fatal while allowing the repository's existing
# informational style lints to be cleaned up independently. # informational style lints to be cleaned up independently.
"$FLUTTER_ROOT/bin/flutter" analyze --no-pub --no-fatal-infos "$FLUTTER_ROOT/bin/flutter" analyze --no-pub --no-fatal-infos
"$FLUTTER_ROOT/bin/flutter" test --no-pub
''' '''
retry(3) {
sh '"$FLUTTER_ROOT/bin/flutter" test --no-pub'
}
} }
} }
} }
@@ -107,6 +109,7 @@ PY
stage('Build arm64 Internal Release') { stage('Build arm64 Internal Release') {
steps { steps {
dir('frontend') { dir('frontend') {
retry(3) {
sh ''' sh '''
set -euo pipefail set -euo pipefail
"$FLUTTER_ROOT/bin/flutter" build apk \ "$FLUTTER_ROOT/bin/flutter" build apk \
@@ -120,6 +123,7 @@ PY
cp "$source_apk" "$APK_PATH" cp "$source_apk" "$APK_PATH"
''' '''
} }
}
sh ''' sh '''
set -euo pipefail set -euo pipefail
"$ANDROID_HOME/build-tools/36.1.0/apksigner" verify --verbose "$APK_PATH" "$ANDROID_HOME/build-tools/36.1.0/apksigner" verify --verbose "$APK_PATH"