Skip to content

Commit f03e9ad

Browse files
committed
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 <[email protected]>
1 parent c0aab37 commit f03e9ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CI/travis/lib.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ upload_file_to_swdownloads() {
298298
}
299299

300300
# limit things to a few files, so things don't grow forever
301-
if [ "${EXT}" = ".deb" ] ; then
301+
# we only do this on one build so simultaneous builds don't clobber each other
302+
if [ -n "${GH_DOC_TOKEN}" ] ; then
302303
for files in $(ssh "${EXTRA_SSH}" "${SSHUSER}@${SSHHOST}" \
303304
"ls -lt ${GLOB}" | tail -n +100 | awk '{print $NF}')
304305
do

0 commit comments

Comments
 (0)