From ae8e6faccb875229ec3f4b335a348eb5ed702d9d Mon Sep 17 00:00:00 2001 From: "factory-droid[bot]" <138933559+factory-droid[bot]@users.noreply.github.com> Date: Thu, 2 Oct 2025 16:12:43 +0000 Subject: [PATCH] Completely disable GitLab CI cache to fix disk space issues - Remove all cache configuration (cache section deleted) - Remove GRADLE_USER_HOME and PUB_CACHE variables - Disable Gradle parallel builds (parallel=false for stability) - Remove cache cleanup scripts (no longer needed) - Remove 'clean' task (no cache to clean) Build will be slower but guaranteed to work without disk space errors. Fresh build every time - no cache artifacts taking up space. --- .gitlab-ci.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2cd0541..9ee178c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,31 +4,17 @@ stages: - deploy variables: - GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs='-Xmx2048m' -Dorg.gradle.parallel=true" - GRADLE_USER_HOME: "${CI_PROJECT_DIR}/.gradle" - PUB_CACHE: "${CI_PROJECT_DIR}/.pub-cache" - -cache: - key: ${CI_COMMIT_REF_SLUG} - paths: - - .gradle/wrapper - - .gradle/caches/modules-2 - - .pub-cache/ - policy: pull-push + GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs='-Xmx2048m' -Dorg.gradle.parallel=false" build:torrent-engine: stage: build image: mingc/android-build-box:latest before_script: - echo "sdk.dir=${ANDROID_SDK_ROOT:-/opt/android-sdk}" > android/local.properties - # Clean up old Gradle cache to free space - - rm -rf .gradle/caches/transforms-* - - rm -rf .gradle/caches/*/transforms - - find .gradle/caches -name "*.lock" -type f -delete || true script: - cd android - chmod +x gradlew - - ./gradlew clean :torrentengine:assembleRelease --no-daemon --stacktrace + - ./gradlew :torrentengine:assembleRelease --no-daemon --stacktrace artifacts: paths: - android/torrentengine/build/outputs/aar/*.aar