Skip to content

Commit

Permalink
[CI] [Hotfix] Make S3 upload conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Jun 26, 2024
1 parent 7e85651 commit d482ba1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/buildkite/build-jvm-linux-arm64-manylinux2014.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ pushd lib
libname=libxgboost4j_linux_arm64_${BUILDKITE_COMMIT}.so
mv -v libxgboost4j.so ${libname}
buildkite-agent artifact upload ${libname}
#if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
#then
if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
then
aws s3 cp ${libname} \
s3://xgboost-nightly-builds/${BRANCH_NAME}/libxgboost4j/ \
--acl public-read --no-progress
#fi
fi
popd
6 changes: 3 additions & 3 deletions tests/buildkite/build-jvm-linux-x86_64-manylinux2014.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ pushd lib
libname=libxgboost4j_linux_x86_64_${BUILDKITE_COMMIT}.so
mv -v libxgboost4j.so ${libname}
buildkite-agent artifact upload ${libname}
#if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
#then
if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
then
aws s3 cp ${libname} \
s3://xgboost-nightly-builds/${BRANCH_NAME}/libxgboost4j/ \
--acl public-read --no-progress
#fi
fi
popd
6 changes: 3 additions & 3 deletions tests/buildkite/build-jvm-macos-m1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ pushd lib
libname=libxgboost4j_m1_${BUILDKITE_COMMIT}.dylib
mv -v libxgboost4j.dylib ${libname}
buildkite-agent artifact upload ${libname}
#if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
#then
if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
then
aws s3 cp ${libname} \
s3://xgboost-nightly-builds/${BRANCH_NAME}/libxgboost4j/ \
--acl public-read --no-progress
#fi
fi
popd
set +x

0 comments on commit d482ba1

Please sign in to comment.