From 96cd7ec2bbdec1addf81b1ca2adb13c9155e32f3 Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Wed, 23 Oct 2019 22:39:04 -0700 Subject: [PATCH] [CI] Upload master branch artifacts to S3 root [skip ci] (#4979) --- Jenkinsfile | 2 +- Jenkinsfile-win64 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 133fc185b..d6f7d7b80 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -224,7 +224,7 @@ def BuildCUDA(args) { if (args.cuda_version == '9.0') { echo 'Stashing Python wheel...' stash name: 'xgboost_whl_cuda9', includes: 'python-package/dist/*.whl' - path = ("${BRANCH_NAME}" == 'master') ? '/' : "${BRANCH_NAME}/" + path = ("${BRANCH_NAME}" == 'master') ? '' : "${BRANCH_NAME}/" s3Upload bucket: 'xgboost-nightly-builds', path: path, acl: 'PublicRead', workingDir: 'python-package/dist', includePathPattern:'**/*.whl' echo 'Stashing C++ test executable (testxgboost)...' stash name: 'xgboost_cpp_tests', includes: 'build/testxgboost' diff --git a/Jenkinsfile-win64 b/Jenkinsfile-win64 index 3e12b113c..74153140f 100644 --- a/Jenkinsfile-win64 +++ b/Jenkinsfile-win64 @@ -92,7 +92,7 @@ def BuildWin64() { """ echo 'Stashing Python wheel...' stash name: 'xgboost_whl', includes: 'python-package/dist/*.whl' - path = ("${BRANCH_NAME}" == 'master') ? '/' : "${BRANCH_NAME}/" + path = ("${BRANCH_NAME}" == 'master') ? '' : "${BRANCH_NAME}/" s3Upload bucket: 'xgboost-nightly-builds', path: path, acl: 'PublicRead', workingDir: 'python-package/dist', includePathPattern:'**/*.whl' echo 'Stashing C++ test executable (testxgboost)...' stash name: 'xgboost_cpp_tests', includes: 'build/testxgboost.exe'