Skip to content

Commit

Permalink
travis-ci: Only rm old files from one build
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rgetz committed Jun 15, 2020
1 parent c0aab37 commit f03e9ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CI/travis/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f03e9ad

Please sign in to comment.