diff --git a/ci/jenkins/Jenkins_steps.groovy b/ci/jenkins/Jenkins_steps.groovy index 45ddc931fa64..cb82b7143761 100644 --- a/ci/jenkins/Jenkins_steps.groovy +++ b/ci/jenkins/Jenkins_steps.groovy @@ -1420,7 +1420,7 @@ def docs_python() { timeout(time: max_time, unit: 'MINUTES') { utils.unpack_and_init('libmxnet', mx_lib, false) utils.docker_run('ubuntu_cpu_python', 'build_python_docs', false) - if (env.BRANCH_NAME == "master" || env.BRANCH_NAME.startsWith("new_")) { + if (env.BRANCH_NAME) { utils.pack_lib('python-artifacts', 'docs/_build/python-artifacts.tgz', false) } } @@ -1438,7 +1438,7 @@ def docs_c() { timeout(time: max_time, unit: 'MINUTES') { utils.unpack_and_init('libmxnet', 'lib/libmxnet.so', false) utils.docker_run('ubuntu_cpu_c', 'build_c_docs', false) - if (env.BRANCH_NAME == "master" || env.BRANCH_NAME.startsWith("new_")) { + if (env.BRANCH_NAME) { utils.pack_lib('c-artifacts', 'docs/_build/c-artifacts.tgz', false) } } @@ -1456,7 +1456,7 @@ def docs_julia() { timeout(time: max_time, unit: 'MINUTES') { utils.unpack_and_init('libmxnet', mx_lib, false) utils.docker_run('ubuntu_cpu_julia', 'build_julia_docs', false) - if (env.BRANCH_NAME == "master" || env.BRANCH_NAME.startsWith("new_")) { + if (env.BRANCH_NAME) { utils.pack_lib('julia-artifacts', 'docs/_build/julia-artifacts.tgz', false) } } @@ -1474,7 +1474,7 @@ def docs_r() { timeout(time: max_time, unit: 'MINUTES') { utils.unpack_and_init('libmxnet', mx_lib, false) utils.docker_run('ubuntu_cpu_r', 'build_r_docs', false) - if (env.BRANCH_NAME == "master" || env.BRANCH_NAME.startsWith("new_")) { + if (env.BRANCH_NAME) { utils.pack_lib('r-artifacts', 'docs/_build/r-artifacts.tgz', false) } } @@ -1493,7 +1493,7 @@ def docs_scala() { timeout(time: max_time, unit: 'MINUTES') { utils.unpack_and_init('libmxnet', mx_lib, false) utils.docker_run('ubuntu_cpu_scala', 'build_scala_docs', false) - if (env.BRANCH_NAME == "master" || env.BRANCH_NAME.startsWith("new_")) { + if (env.BRANCH_NAME) { utils.pack_lib('scala-artifacts', 'docs/_build/scala-artifacts.tgz', false) } } @@ -1512,7 +1512,7 @@ def docs_java() { timeout(time: max_time, unit: 'MINUTES') { utils.unpack_and_init('libmxnet', mx_lib, false) utils.docker_run('ubuntu_cpu_scala', 'build_java_docs', false) - if (env.BRANCH_NAME == "master" || env.BRANCH_NAME.startsWith("new_")) { + if (env.BRANCH_NAME) { utils.pack_lib('java-artifacts', 'docs/_build/java-artifacts.tgz', false) } } @@ -1531,7 +1531,7 @@ def docs_clojure() { timeout(time: max_time, unit: 'MINUTES') { utils.unpack_and_init('libmxnet', mx_lib, false) utils.docker_run('ubuntu_cpu_scala', 'build_clojure_docs', false) - if (env.BRANCH_NAME == "master" || env.BRANCH_NAME.startsWith("new_")) { + if (env.BRANCH_NAME) { utils.pack_lib('clojure-artifacts', 'docs/_build/clojure-artifacts.tgz', false) } } @@ -1549,7 +1549,7 @@ def docs_jekyll() { timeout(time: max_time, unit: 'MINUTES') { utils.init_git() utils.docker_run('ubuntu_cpu_jekyll', 'build_jekyll_docs', false) - if (env.BRANCH_NAME == "master" || env.BRANCH_NAME.startsWith("new_")) { + if (env.BRANCH_NAME) { utils.pack_lib('jekyll-artifacts', 'docs/_build/jekyll-artifacts.tgz', false) } }