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

This commit is contained in:
Hyunsu Cho
2020-08-12 06:08:32 +00:00
parent 936a854baa
commit eee4eff49b
2 changed files with 18 additions and 7 deletions

7
Jenkinsfile vendored
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()