From 06a5b03c0bfd96e93f79e2317be188d9a9c30dbc Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Tue, 17 Sep 2019 00:06:32 +0200 Subject: [PATCH] shell: ta-rpm-deploy: Cleanup stale duplicates dir Cleanup duplicates directories if present from previous runs, e.g. on static Jenkins slaves. Change-Id: I18512b7e9152de37f3e73cc66bcc06c2657a3138 Signed-off-by: Alexandru Avadanii --- jjb/shell/ta-rpm-deploy.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/jjb/shell/ta-rpm-deploy.sh b/jjb/shell/ta-rpm-deploy.sh index aa46e7a..bd31a4c 100644 --- a/jjb/shell/ta-rpm-deploy.sh +++ b/jjb/shell/ta-rpm-deploy.sh @@ -27,6 +27,7 @@ results_dir="$WORKSPACE/work/results" repo_name=`echo $WORKSPACE | awk -F '/' '{print $4}' | cut -d '-' -f2- | sed 's|\(.*\)-.*|\1|'` #Creating dirs to move duplicate RPMs/SRPMs to avoid re-upload and copy the changed RPMs/SRPMs +rm -rf "$results_dir/repo/duplicates" "$results_dir/src_repo/duplicates" mkdir "$results_dir/repo/duplicates" mkdir "$results_dir/src_repo/duplicates" mkdir -p "$arch_dir" -- 2.16.6