This commit is contained in:
@@ -100,8 +100,10 @@ jobs:
|
||||
# algorithms some CMU hosts still use that modern OpenSSH disables
|
||||
# by default (a common cause of a silent connection failure).
|
||||
#
|
||||
# `debug 3` prints the negotiation so any remaining failure is visible
|
||||
# in the job log instead of just "max-retries exceeded".
|
||||
# To debug connection problems, temporarily add `debug 3;` before the
|
||||
# open line and `--verbose` to the mirror — both are omitted here to
|
||||
# keep the job log small (large logs slow the "Complete job" upload
|
||||
# back to the off-campus Gitea).
|
||||
lftp -c "
|
||||
set sftp:auto-confirm yes;
|
||||
set sftp:connect-program 'ssh -a -x \
|
||||
@@ -114,10 +116,9 @@ jobs:
|
||||
set net:max-retries 2;
|
||||
set net:timeout 30;
|
||||
set net:reconnect-interval-base 5;
|
||||
debug 3;
|
||||
open -u '${SFTP_USERNAME}','${SFTP_PASSWORD}' sftp://${SFTP_HOST}:${PORT};
|
||||
mkdir -f -p '${SFTP_REMOTE_PATH}';
|
||||
mirror -R --delete --verbose ./dist/ '${SFTP_REMOTE_PATH}';
|
||||
mirror -R --delete --only-newer ./dist/ '${SFTP_REMOTE_PATH}';
|
||||
bye
|
||||
"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user