Skip to content

Commit

Permalink
Clean workspace after stages
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Apr 24, 2019
1 parent 0d7e3b6 commit 33cde39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def ClangTidy() {
sh """
${dockerRun} ${container_type} ${docker_binary} ${dockerArgs} tests/ci_build/clang_tidy.sh
"""
deleteDir()
}
}

Expand All @@ -126,6 +127,7 @@ def Lint() {
sh """
${dockerRun} ${container_type} ${docker_binary} make lint
"""
deleteDir()
}
}

Expand All @@ -138,6 +140,7 @@ def SphinxDoc() {
sh """#!/bin/bash
CI_DOCKER_EXTRA_PARAMS_INIT='-e SPHINX_GIT_BRANCH=${BRANCH_NAME}' ${dockerRun} ${container_type} ${docker_binary} make -C doc html
"""
deleteDir()
}
}

Expand All @@ -150,6 +153,7 @@ def Doxygen() {
sh """
${dockerRun} ${container_type} ${docker_binary} tests/ci_build/doxygen.sh
"""
deleteDir()
}
}

Expand All @@ -175,6 +179,7 @@ def BuildJVMPackages(args) {
"""
echo 'Stashing XGBoost4J JAR...'
stash name: 'xgboost4j_jar', includes: 'jvm-packages/xgboost4j/target/*.jar'
deleteDir()
}
}

Expand All @@ -190,6 +195,7 @@ def BuildJVMDoc() {
archiveArtifacts artifacts: "jvm-packages/${BRANCH_NAME}.tar.bz2", allowEmptyArchive: true
echo 'Uploading doc...'
s3Upload file: "jvm-packages/${BRANCH_NAME}.tar.bz2", bucket: 'xgboost-docs', acl: 'PublicRead', path: "${BRANCH_NAME}.tar.bz2"
deleteDir()
}
}

Expand Down Expand Up @@ -224,6 +230,7 @@ def CrossTestJVMwithJDK(args) {
sh """
${dockerRun} ${container_type} ${docker_binary} ${docker_args} tests/ci_build/test_jvm_cross.sh
"""
deleteDir()
}
}

Expand Down

0 comments on commit 33cde39

Please sign in to comment.