Skip to content

Commit f9abc28

Browse files
committed
travis-ci: avoid errors when uploading things to akami
I don't know who maintains this infrastructure - but they don't use the same keys on all their mirrors, so we need to use -o "StrictHostKeyChecking no" which defeats the purpose of secure anything. But this will avoid errors when pushing things up. Since this is only pushing things up, not pulling things down - this is not risky. Signed-off-by: Robin Getz <[email protected]>
1 parent d32fc58 commit f9abc28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CI/travis/lib.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ brew_install_if_not_exists() {
222222
}
223223

224224
sftp_cmd_pipe() {
225-
sftp "${EXTRA_SSH}" "${SSHUSER}@${SSHHOST}"
225+
sftp -o "StrictHostKeyChecking no" "${EXTRA_SSH}" "${SSHUSER}@${SSHHOST}"
226226
}
227227

228228
sftp_rm_artifact() {
@@ -310,15 +310,15 @@ upload_file_to_swdownloads() {
310310
# limit things to a few files, so things don't grow forever
311311
# we only do this on one build so simultaneous builds don't clobber each other
312312
if [ -n "${GH_DOC_TOKEN}" ] ; then
313-
for files in $(ssh "${EXTRA_SSH}" "${SSHUSER}@${SSHHOST}" \
313+
for files in $(ssh -o "StrictHostKeyChecking no" "${EXTRA_SSH}" "${SSHUSER}@${SSHHOST}" \
314314
"ls -lt ${GLOB}" | tail -n +100 | awk '{print $NF}')
315315
do
316-
ssh "${EXTRA_SSH}" "${SSHUSER}@${SSHHOST}" \
316+
ssh -o "StrictHostKeyChecking no" "${EXTRA_SSH}" "${SSHUSER}@${SSHHOST}" \
317317
"rm ${DEPLOY_TO}/${files}" || \
318318
return 1
319319
done
320320
# provide an index so people can find files.
321-
ssh "${EXTRA_SSH}" "${SSHUSER}@${SSHHOST}" \
321+
ssh -o "StrictHostKeyChecking no" "${EXTRA_SSH}" "${SSHUSER}@${SSHHOST}" \
322322
"ls -lt ${DEPLOY_TO}" | grep ${LIBNAME} > ${LIBNAME}_index.html
323323
sftp_rm_artifact "${LIBNAME}_index.html" || \
324324
echo_blue "Could not delete ${LIBNAME}_index.html"

0 commit comments

Comments
 (0)