Skip to content

Commit

Permalink
Allowed sftp cache to not work, falling back to github cache or build…
Browse files Browse the repository at this point in the history
…ing deps

Ticket: ENT-10419
Changelog: none
  • Loading branch information
craigcomstock committed Aug 24, 2023
1 parent 1b5fad7 commit 07641bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/docker-build-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ mkdir -p "${PKGS_DIR}"
echo "build-artifacts-cache.cloud.cfengine.com,138.68.18.72 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJhnAXjI9PMuRM3s0isYFH4SNZjKwq0E3VK+7YQKcL6aIxNhXjdJnNKAkh4MNlzZkLpFTYputUxKa1yPPrb5G/Y=" >>~/.ssh/known_hosts

echo -e "cd /export/sftp_dirs_cache/${label}\n get -Ra *${revision}* ${PKGS_DIR}" | \
sftp -oPubkeyAcceptedKeyTypes=+ssh-rsa -b - [email protected]
sftp -oPubkeyAcceptedKeyTypes=+ssh-rsa -b - [email protected] || true # allow failure, fallback is github cache or building deps

# ending with /. in srcpath copies contents to destpath
docker cp "${NTECH_ROOT}/cache/." $name:/root/.cache
Expand Down

0 comments on commit 07641bc

Please sign in to comment.