From f03e9adae473e6ac9403319fb076ed0dd3f2e730 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Fri, 12 Jun 2020 09:41:54 -0400 Subject: [PATCH] travis-ci: Only rm old files from one build This should eliminate simultaneous CI instances trying to remove the same files, and erroring out, causing false failures on the CI. Signed-off-by: Robin Getz --- CI/travis/lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CI/travis/lib.sh b/CI/travis/lib.sh index 881142acb..1e1dc0899 100644 --- a/CI/travis/lib.sh +++ b/CI/travis/lib.sh @@ -298,7 +298,8 @@ upload_file_to_swdownloads() { } # limit things to a few files, so things don't grow forever - if [ "${EXT}" = ".deb" ] ; then + # we only do this on one build so simultaneous builds don't clobber each other + if [ -n "${GH_DOC_TOKEN}" ] ; then for files in $(ssh "${EXTRA_SSH}" "${SSHUSER}@${SSHHOST}" \ "ls -lt ${GLOB}" | tail -n +100 | awk '{print $NF}') do