From cf81e28b9f54b6973d1c2c55d17859f0dca0cbd7 Mon Sep 17 00:00:00 2001 From: Sawjan Gurung Date: Fri, 11 Aug 2023 17:47:56 +0545 Subject: [PATCH] do not skip sonar and codacy in ci (#7015) --- .drone.star | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.drone.star b/.drone.star index 2543305968a..7577291b471 100644 --- a/.drone.star +++ b/.drone.star @@ -594,7 +594,6 @@ def uploadScanResults(ctx): "git checkout $DRONE_COMMIT", ], }, - ] + skipIfUnchanged(ctx, "unit-tests") + [ { "name": "sync-from-cache", "image": MINIO_MC, @@ -602,7 +601,7 @@ def uploadScanResults(ctx): "commands": [ "mkdir -p cache", "mc alias set cachebucket $MC_HOST $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY", - "mc mirror cachebucket/$CACHE_BUCKET/%s/%s/cache cache/" % (ctx.repo.slug, ctx.build.commit + "-${DRONE_BUILD_NUMBER}"), + "mc mirror cachebucket/$CACHE_BUCKET/%s/%s/cache cache/ || true" % (ctx.repo.slug, ctx.build.commit + "-${DRONE_BUILD_NUMBER}"), ], }, { @@ -625,7 +624,7 @@ def uploadScanResults(ctx): "environment": MINIO_MC_ENV, "commands": [ "mc alias set cachebucket $MC_HOST $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY", - "mc rm --recursive --force cachebucket/$CACHE_BUCKET/%s/%s/cache" % (ctx.repo.slug, ctx.build.commit + "-${DRONE_BUILD_NUMBER}"), + "mc rm --recursive --force cachebucket/$CACHE_BUCKET/%s/%s/cache || true" % (ctx.repo.slug, ctx.build.commit + "-${DRONE_BUILD_NUMBER}"), ], }, ],