[jvm-packages] [CI] Create a Maven repository to host SNAPSHOT JARs (#5533)

This commit is contained in:
Philip Hyunsu Cho
2020-04-14 19:33:32 -07:00
committed by GitHub
parent 2809fb8b6f
commit 1b1969f20d
5 changed files with 211 additions and 101 deletions

26
Jenkinsfile vendored
View File

@@ -94,6 +94,17 @@ pipeline {
milestone ordinal: 4
}
}
stage('Jenkins Linux: Deploy') {
agent none
steps {
script {
parallel ([
'deploy-jvm-packages': { DeployJVMPackages(spark_version: '2.4.3') }
])
}
milestone ordinal: 5
}
}
}
}
@@ -383,3 +394,18 @@ def TestR(args) {
deleteDir()
}
}
def DeployJVMPackages(args) {
node('linux && cpu') {
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}
"""
}
deleteDir()
}
}