From d7c66319aa9e846025fba76bf70b0d32acd76d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 4 Jun 2024 14:32:09 +0200 Subject: [PATCH] fix(ci)_: drop clean.sh script from cleanup stage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because it keeps failing due to paths that appear alive but are not. Signed-off-by: Jakub SokoĊ‚owski --- ci/tools/Jenkinsfile.nix-cache | 1 - nix/scripts/clean.sh | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ci/tools/Jenkinsfile.nix-cache b/ci/tools/Jenkinsfile.nix-cache index d22b28eafd..a638d96bea 100644 --- a/ci/tools/Jenkinsfile.nix-cache +++ b/ci/tools/Jenkinsfile.nix-cache @@ -123,7 +123,6 @@ pipeline { post { always { script { nix.shell('nix-store --optimize', pure: false) - nix.shell('nix/scripts/clean.sh', pure: false) } } } } diff --git a/nix/scripts/clean.sh b/nix/scripts/clean.sh index 1756aaca26..d46c298173 100755 --- a/nix/scripts/clean.sh +++ b/nix/scripts/clean.sh @@ -62,7 +62,7 @@ findByRegex() { # list of store entries to delete declare -a found - + # for each entry find the source and derivation for mainPath in ${drvPaths}; do findRelated "${mainPath}" @@ -87,7 +87,7 @@ nixResultPath="${1}" if [[ -n "${nixResultPath}" ]]; then # if provided we can narrow down what to clean based on result path toDelete=$(findByResult "${nixResultPath}") -else +else # use regular expression that should match all status-mobile build artifacts toDelete=$(findByRegex '.*-status-(mobile|go)-(shell|source|build|patched-npm-gradle-modules).*') fi