ci: retry transient SQLCipher asset downloads

This commit is contained in:
2026-08-11 23:45:28 +08:00
parent 9281a543c8
commit 04235762ea
Vendored
+17 -13
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,18 +109,20 @@ PY
stage('Build arm64 Internal Release') { stage('Build arm64 Internal Release') {
steps { steps {
dir('frontend') { dir('frontend') {
sh ''' retry(3) {
set -euo pipefail sh '''
"$FLUTTER_ROOT/bin/flutter" build apk \ set -euo pipefail
--flavor internal --release --target-platform android-arm64 \ "$FLUTTER_ROOT/bin/flutter" build apk \
--build-name "$APP_VERSION" --build-number "$ANDROID_VERSION_CODE" \ --flavor internal --release --target-platform android-arm64 \
--dart-define=INTERNAL_BUILD=true \ --build-name "$APP_VERSION" --build-number "$ANDROID_VERSION_CODE" \
--dart-define="API_BASE_URL=$API_BASE_URL" \ --dart-define=INTERNAL_BUILD=true \
--dart-define="APP_VERSION=$IMMUTABLE_TAG" --dart-define="API_BASE_URL=$API_BASE_URL" \
source_apk=build/app/outputs/flutter-apk/app-internal-release.apk --dart-define="APP_VERSION=$IMMUTABLE_TAG"
test -s "$source_apk" source_apk=build/app/outputs/flutter-apk/app-internal-release.apk
cp "$source_apk" "$APK_PATH" test -s "$source_apk"
''' cp "$source_apk" "$APK_PATH"
'''
}
} }
sh ''' sh '''
set -euo pipefail set -euo pipefail