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