[CI] [Hotfix] Make S3 upload conditional
This commit is contained in:
parent
08658b124d
commit
5efc979551
@ -20,10 +20,10 @@ pushd lib
|
|||||||
libname=libxgboost4j_linux_arm64_${BUILDKITE_COMMIT}.so
|
libname=libxgboost4j_linux_arm64_${BUILDKITE_COMMIT}.so
|
||||||
mv -v libxgboost4j.so ${libname}
|
mv -v libxgboost4j.so ${libname}
|
||||||
buildkite-agent artifact upload ${libname}
|
buildkite-agent artifact upload ${libname}
|
||||||
#if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
|
if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
|
||||||
#then
|
then
|
||||||
aws s3 cp ${libname} \
|
aws s3 cp ${libname} \
|
||||||
s3://xgboost-nightly-builds/${BRANCH_NAME}/libxgboost4j/ \
|
s3://xgboost-nightly-builds/${BRANCH_NAME}/libxgboost4j/ \
|
||||||
--acl public-read --no-progress
|
--acl public-read --no-progress
|
||||||
#fi
|
fi
|
||||||
popd
|
popd
|
||||||
|
|||||||
@ -20,10 +20,10 @@ pushd lib
|
|||||||
libname=libxgboost4j_linux_x86_64_${BUILDKITE_COMMIT}.so
|
libname=libxgboost4j_linux_x86_64_${BUILDKITE_COMMIT}.so
|
||||||
mv -v libxgboost4j.so ${libname}
|
mv -v libxgboost4j.so ${libname}
|
||||||
buildkite-agent artifact upload ${libname}
|
buildkite-agent artifact upload ${libname}
|
||||||
#if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
|
if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
|
||||||
#then
|
then
|
||||||
aws s3 cp ${libname} \
|
aws s3 cp ${libname} \
|
||||||
s3://xgboost-nightly-builds/${BRANCH_NAME}/libxgboost4j/ \
|
s3://xgboost-nightly-builds/${BRANCH_NAME}/libxgboost4j/ \
|
||||||
--acl public-read --no-progress
|
--acl public-read --no-progress
|
||||||
#fi
|
fi
|
||||||
popd
|
popd
|
||||||
|
|||||||
@ -31,11 +31,11 @@ pushd lib
|
|||||||
libname=libxgboost4j_m1_${BUILDKITE_COMMIT}.dylib
|
libname=libxgboost4j_m1_${BUILDKITE_COMMIT}.dylib
|
||||||
mv -v libxgboost4j.dylib ${libname}
|
mv -v libxgboost4j.dylib ${libname}
|
||||||
buildkite-agent artifact upload ${libname}
|
buildkite-agent artifact upload ${libname}
|
||||||
#if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
|
if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
|
||||||
#then
|
then
|
||||||
aws s3 cp ${libname} \
|
aws s3 cp ${libname} \
|
||||||
s3://xgboost-nightly-builds/${BRANCH_NAME}/libxgboost4j/ \
|
s3://xgboost-nightly-builds/${BRANCH_NAME}/libxgboost4j/ \
|
||||||
--acl public-read --no-progress
|
--acl public-read --no-progress
|
||||||
#fi
|
fi
|
||||||
popd
|
popd
|
||||||
set +x
|
set +x
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user