summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2016-06-16 23:56:17 +0200
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>2016-06-16 23:56:17 +0200
commite46416cb0e0869acf12a923caba9563fd613a313 (patch)
tree8df1b86d0f0e572f1db289bb738829d1468c0d9b
parent1bbfd686a43022a405257acca1cd773d1f13f2f8 (diff)
fuel: Don't attempt cache cleanup if cleanup script doesn't exist
Change-Id: Iafe300baabfe6a0261f318965104b4c56401a291 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
-rwxr-xr-xjjb/fuel/fuel-build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/jjb/fuel/fuel-build.sh b/jjb/fuel/fuel-build.sh
index a32e5323a..662a1f46e 100755
--- a/jjb/fuel/fuel-build.sh
+++ b/jjb/fuel/fuel-build.sh
@@ -14,7 +14,7 @@ set -o pipefail
cd $WORKSPACE
# remove the expired items from cache
-./ci/clean_cache.sh $CACHE_DIRECTORY
+test -f $WORKSPACE/ci/clean_cache.sh && $WORKSPACE/ci/clean_cache.sh $CACHE_DIRECTORY
LATEST_ISO_PROPERTIES=$WORKSPACE/latest.iso.properties
if [[ "$JOB_NAME" =~ "daily" ]]; then