From bf2a568924e667c1c5d5e7a974d8e7cfdbcf2e43 Mon Sep 17 00:00:00 2001 From: Yinling Date: Mon, 12 Dec 2016 09:31:06 +0800 Subject: [PATCH] remove not used code as `rm -rf` always return 0 --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 26f73085b..7cb63be8c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -248,7 +248,7 @@ deploy_docs: script: # remove artifacts from last stage (UT logs) - - rm -rf $LOG_PATH || echo "log folder not exist" + - rm -rf $LOG_PATH # add gitlab ssh key - mkdir -p ~/.ssh - chmod 700 ~/.ssh @@ -271,7 +271,7 @@ deploy_docs: - triggers script: # remove artifacts from last stage (UT logs) - - rm -rf $LOG_PATH || echo "log folder not exist" + - rm -rf $LOG_PATH # must be night build triggers, otherwise exit without test - test $NIGHT_BUILD = "Yes" || exit 0 # add gitlab ssh key