[CI] Build GPU-enabled JAR artifact and deploy to xgboost-maven-repo

This commit is contained in:
Hyunsu Cho
2020-08-12 00:50:47 -07:00
parent 936a854baa
commit eee4eff49b
2 changed files with 18 additions and 7 deletions
Vendored
+4 -3
View File
@@ -472,10 +472,11 @@ def DeployJVMPackages(args) {
unstash name: 'srcs'
if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME.startsWith('release')) {
echo 'Deploying to xgboost-maven-repo S3 repo...'
def container_type = "jvm"
def docker_binary = "docker"
sh """
${dockerRun} ${container_type} ${docker_binary} tests/ci_build/deploy_jvm_packages.sh ${args.spark_version}
${dockerRun} jvm docker tests/ci_build/deploy_jvm_packages.sh ${args.spark_version} 0
"""
sh """
${dockerRun} jvm_gpu_build docker tests/ci_build/deploy_jvm_packages.sh ${args.spark_version} 1
"""
}
deleteDir()