fix(ci)_: drop clean.sh script from cleanup stage
Because it keeps failing due to paths that appear alive but are not. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
5193f981f8
commit
d7c66319aa
|
@ -123,7 +123,6 @@ pipeline {
|
||||||
post {
|
post {
|
||||||
always { script {
|
always { script {
|
||||||
nix.shell('nix-store --optimize', pure: false)
|
nix.shell('nix-store --optimize', pure: false)
|
||||||
nix.shell('nix/scripts/clean.sh', pure: false)
|
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@ findByRegex() {
|
||||||
|
|
||||||
# list of store entries to delete
|
# list of store entries to delete
|
||||||
declare -a found
|
declare -a found
|
||||||
|
|
||||||
# for each entry find the source and derivation
|
# for each entry find the source and derivation
|
||||||
for mainPath in ${drvPaths}; do
|
for mainPath in ${drvPaths}; do
|
||||||
findRelated "${mainPath}"
|
findRelated "${mainPath}"
|
||||||
|
@ -87,7 +87,7 @@ nixResultPath="${1}"
|
||||||
if [[ -n "${nixResultPath}" ]]; then
|
if [[ -n "${nixResultPath}" ]]; then
|
||||||
# if provided we can narrow down what to clean based on result path
|
# if provided we can narrow down what to clean based on result path
|
||||||
toDelete=$(findByResult "${nixResultPath}")
|
toDelete=$(findByResult "${nixResultPath}")
|
||||||
else
|
else
|
||||||
# use regular expression that should match all status-mobile build artifacts
|
# use regular expression that should match all status-mobile build artifacts
|
||||||
toDelete=$(findByRegex '.*-status-(mobile|go)-(shell|source|build|patched-npm-gradle-modules).*')
|
toDelete=$(findByRegex '.*-status-(mobile|go)-(shell|source|build|patched-npm-gradle-modules).*')
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue