Update e2e log archive (#27534)

Signed-off-by: Bennu-Li <yunmei.li@zilliz.com>
pull/27580/head
Bennu 2023-10-09 15:45:32 +08:00 committed by GitHub
parent df6e0b7a2c
commit 7e9ed91304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -88,7 +88,8 @@ fi
# Try to found logs file from mount disk /volume1/ci-logs
# log_files=$(find ${LOG_DIR} -type f -name "*${RELEASE_NAME}*" )
log_files=$(ls ${LOG_DIR} | grep ${RELEASE_NAME} || echo nonexistment)
if [ "${log_files}"="nonexistment" ]; then
if [ "${log_files}" == "nonexistment" ]; then
echo "No log files find"
else
for log_file in ${log_files}
@ -102,11 +103,11 @@ fi
# remain_log_files=$(find ${LOG_DIR} -type f -name "*${RELEASE_NAME}*")
ls ${LOG_DIR} | grep ${RELEASE_NAME}
# ls ${LOG_DIR} | grep ${RELEASE_NAME}
remain_log_files=$(ls ${LOG_DIR} | grep ${RELEASE_NAME} || echo nonexistment)
if [ "${remain_log_files}"="nonexistment" ]; then
if [ "${remain_log_files}" == "nonexistment" ]; then
echo "No remain log files"
else
echo "Still have log files & Remove again"