From a91fa7279c5ddc4976fcbe863ffc19cd61aa761a Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Fri, 29 Aug 2025 13:41:56 +0530 Subject: [PATCH] ci: ensure logs are always uploaded to artifacts Signed-off-by: Akash Yadav --- .gitlab-ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4829341..6e6b99f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -147,8 +147,9 @@ build-apk: <<: *build_variables <<: *build_setup_steps script: - - echo "Building APK..." | tee -a "build-apk-$BUILD_VARIANT.log" - - bash -x scripts/ci-build.sh | tee -a "build-apk-$BUILD_VARIANT.log" + - BUILD_LOG_FILE="$CI_PROJECT_DIR/artifacts/logs/build-apk-$BUILD_VARIANT.log" + - echo "Building APK..." | tee -a "$BUILD_LOG_FILE" + - bash -x scripts/ci-build.sh | tee -a "$BUILD_LOG_FILE" artifacts: untracked: false when: always @@ -158,7 +159,7 @@ build-apk: paths: - $CI_PROJECT_DIR/artifacts/apk/**/* - $CI_PROJECT_DIR/artifacts/aar/**/* - - build-apk.log + - $CI_PROJECT_DIR/artifacts/logs/**/* rules: - if: $CI_PROJECT_NAMESPACE != "ironfox-oss" when: never @@ -187,8 +188,9 @@ build-bundle: <<: *build_variables <<: *build_setup_steps script: - - echo "Building Bundle..." | tee -a build-bundle.log - - bash -x scripts/ci-build.sh | tee -a build-bundle.log + - BUILD_LOG_FILE="$CI_PROJECT_DIR/artifacts/logs/build-bundle.log" + - echo "Building Bundle..." | tee -a "$BUILD_LOG_FILE" + - bash -x scripts/ci-build.sh | tee -a "$BUILD_LOG_FILE" artifacts: untracked: false when: always @@ -197,7 +199,7 @@ build-bundle: expire_in: "30 days" paths: - $CI_PROJECT_DIR/artifacts/apks/**/* - - build-bundle.log + - $CI_PROJECT_DIR/artifacts/logs/**/* rules: - if: $CI_PROJECT_NAMESPACE != "ironfox-oss" when: never