Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
driazati committed Nov 23, 2021
1 parent 161a4ad commit f323b8f
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,12 @@ def per_exec_ws(folder) {
// initialize source codes
def init_git() {
// Add more info about job node
sh (script: """
sh (
script: """
echo "INFO: NODE_NAME=${NODE_NAME} EXECUTOR_NUMBER=${EXECUTOR_NUMBER}"
""", label: "Show executor node info")
""",
label: "Show executor node info",
)
checkout scm
retry(5) {
timeout(time: 2, unit: 'MINUTES') {
Expand Down Expand Up @@ -127,7 +130,7 @@ stage('Prepare') {
ci_qemu = params.ci_qemu_param ?: ci_qemu
ci_arm = params.ci_arm_param ?: ci_arm

sh script: """
sh (script: """
echo "Docker images being used in this build:"
echo " ci_lint = ${ci_lint}"
echo " ci_cpu = ${ci_cpu}"
Expand All @@ -136,7 +139,7 @@ stage('Prepare') {
echo " ci_i386 = ${ci_i386}"
echo " ci_qemu = ${ci_qemu}"
echo " ci_arm = ${ci_arm}"
""", label: "Docker image names"
""", label: "Docker image names")
}
}

Expand All @@ -145,11 +148,15 @@ stage('Sanity Check') {
node('CPU') {
ws(per_exec_ws('tvm/sanity')) {
init_git()
is_docs_only_build = sh (returnStatus: true, script: '''
./tests/scripts/git_change_docs.sh
''', label: "Check for docs only changes"
is_docs_only_build = sh (
returnStatus: true,
script: './tests/scripts/git_change_docs.sh',
label: "Check for docs only changes",
)
sh (
script: "${docker_run} ${ci_lint} ./tests/scripts/task_lint.sh",
label: "Run lint",
)
sh (script: "${docker_run} ${ci_lint} ./tests/scripts/task_lint.sh", label: "Run lint")
}
}
}
Expand Down Expand Up @@ -220,7 +227,7 @@ def ci_setup(image) {
def unittest(image) {
sh (
script: "${docker_run} ${image} ./tests/scripts/task_python_unittest.sh",
label: "Run Python unittests",
label: "Run Python unit tests",
)
}

Expand Down

0 comments on commit f323b8f

Please sign in to comment.