From 3aeab68cab5790492c4853c27930b568e16de81e Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Mon, 24 Jun 2024 14:40:28 -0700 Subject: [PATCH] [CI] Fix S3 upload for manylinux2014 wheels (#10483) --- tests/buildkite/build-manylinux2014-aarch64.sh | 4 +--- tests/buildkite/build-manylinux2014-x86_64.sh | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/buildkite/build-manylinux2014-aarch64.sh b/tests/buildkite/build-manylinux2014-aarch64.sh index fc8d20b7c11f..802db3f66aaf 100644 --- a/tests/buildkite/build-manylinux2014-aarch64.sh +++ b/tests/buildkite/build-manylinux2014-aarch64.sh @@ -26,10 +26,8 @@ mv -v wheelhouse/*.whl python-package/dist/ echo "--- Upload Python wheel" buildkite-agent artifact upload python-package/dist/*.whl -$command_wrapper bash -c "${python_bin} -m pip install awscli" if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]] then - ${python_bin} -m awscli s3 \ - cp python-package/dist/*.whl s3://xgboost-nightly-builds/${BRANCH_NAME}/ \ + aws s3 cp python-package/dist/*.whl s3://xgboost-nightly-builds/${BRANCH_NAME}/ \ --acl public-read --no-progress fi diff --git a/tests/buildkite/build-manylinux2014-x86_64.sh b/tests/buildkite/build-manylinux2014-x86_64.sh index 3bcc4e7cb20d..b00616315b8d 100644 --- a/tests/buildkite/build-manylinux2014-x86_64.sh +++ b/tests/buildkite/build-manylinux2014-x86_64.sh @@ -26,10 +26,8 @@ mv -v wheelhouse/*.whl python-package/dist/ echo "--- Upload Python wheel" buildkite-agent artifact upload python-package/dist/*.whl -$command_wrapper bash -c "${python_bin} -m pip install awscli" if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]] then - ${python_bin} -m awscli s3 \ - cp python-package/dist/*.whl s3://xgboost-nightly-builds/${BRANCH_NAME}/ \ + aws s3 cp python-package/dist/*.whl s3://xgboost-nightly-builds/${BRANCH_NAME}/ \ --acl public-read --no-progress fi