From 2ac23764cd6fd0f333a58d18cccea7b856ee017f Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Sat, 30 Aug 2025 09:44:54 +0530 Subject: [PATCH] ci: redirect all build logs to files; without terminal output Signed-off-by: Akash Yadav --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c50cbcc..f2da144 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -151,8 +151,8 @@ build-apk: script: - mkdir -vp "$CI_PROJECT_DIR/artifacts/logs" - 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" + - echo "Building APK..." > "$BUILD_LOG_FILE" 2>&1 + - bash -x scripts/ci-build.sh >> "$BUILD_LOG_FILE" 2>&1 artifacts: untracked: false when: always @@ -193,8 +193,8 @@ build-bundle: script: - mkdir -vp "$CI_PROJECT_DIR/artifacts/logs" - 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" + - echo "Building Bundle..." > "$BUILD_LOG_FILE" 2>&1 + - bash -x scripts/ci-build.sh >> "$BUILD_LOG_FILE" 2>&1 artifacts: untracked: false when: always