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