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'