diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2025-03-05 15:34:47 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2025-03-11 09:38:45 +0100 |
| commit | 31b059e200a083c9809bcdf0b4d9b0960173b34e (patch) | |
| tree | f5ead4492acbc652e02e25bd25fa6dc6e3c7306a /ci | |
| parent | 69f0ac41bf09191b3f5383c52fbadc06c6420f9e (diff) | |
| download | mullvadvpn-31b059e200a083c9809bcdf0b4d9b0960173b34e.tar.xz mullvadvpn-31b059e200a083c9809bcdf0b4d9b0960173b34e.zip | |
Sleep before rsync to avoid remote file locking issue
Diffstat (limited to 'ci')
| -rwxr-xr-x | ci/linux-repository-builder/build-linux-repositories.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ci/linux-repository-builder/build-linux-repositories.sh b/ci/linux-repository-builder/build-linux-repositories.sh index 418183485b..f39b06a47c 100755 --- a/ci/linux-repository-builder/build-linux-repositories.sh +++ b/ci/linux-repository-builder/build-linux-repositories.sh @@ -135,6 +135,10 @@ function rsync_repo { local remote_repo_dir=$2 echo "Syncing to $repository_server_upload_domain:$remote_repo_dir" + # We have an issue where the rsync can fail due to the remote dir being locked (only one rsync at a time allowed) + # We suspect this is because of too fast subsequent invocations of rsync to the same target dir. With a hacky sleep + # we hope to avoid this issue for now. + sleep 10 rsync -av --delete --mkpath --rsh='ssh -p 1122' \ "$local_repo_dir"/ \ build@"$repository_server_upload_domain":"$remote_repo_dir" |
