-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
113 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/bash | ||
## Deploy JVM packages to xgboost-maven-repo S3 bucket | ||
|
||
set -euox pipefail | ||
|
||
if [[ "$#" -lt 1 ]] | ||
then | ||
echo "Usage: $0 {cpu,gpu}" | ||
exit 1 | ||
fi | ||
|
||
variant="$1" | ||
|
||
maven_options="-DskipTests -Dmaven.test.skip=true -Dskip.native.build=true" | ||
case "$variant" in | ||
cpu) | ||
# CPU variant | ||
for scala_version in 2.12 2.13 | ||
do | ||
python dev/change_scala_version.py --scala-version ${scala_version} --purge-artifacts | ||
pushd jvm-packages | ||
mvn --no-transfer-progress deploy -Pdefault,release-to-s3 ${maven_options} | ||
mvn clean | ||
mvn clean -Pdefault,release-to-s3 | ||
popd | ||
done | ||
;; | ||
gpu) | ||
# GPU variant | ||
for scala_version in 2.12 2.13 | ||
do | ||
python dev/change_scala_version.py --scala-version ${scala_version} --purge-artifacts | ||
pushd jvm-packages | ||
mvn --no-transfer-progress install -Pgpu ${maven_options} | ||
mvn --no-transfer-progress deploy -Pgpu,release-to-s3 -pl xgboost4j-spark-gpu ${maven_options} | ||
mvn clean | ||
mvn clean -Pgpu,release-to-s3 | ||
popd | ||
done | ||
;; | ||
*) | ||
echo "Unrecognized argument: $variant" | ||
exit 2 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -euox pipefail | ||
|
||
source ops/pipeline/enforce-ci.sh | ||
|
||
if [[ "$#" -lt 2 ]] | ||
then | ||
echo "Usage: $0 {cpu,gpu} {container_id}" | ||
exit 1 | ||
fi | ||
|
||
variant="$1" | ||
container_id="$2" | ||
|
||
# if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]] | ||
# then | ||
echo "--- Deploy JVM packages to xgboost-maven-repo S3 repo" | ||
python3 ops/docker_run.py --container-id "${container_id}" \ | ||
-- ops/pipeline/deploy-jvm-packages-impl.sh "${variant}" | ||
# fi |