You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by ar...@apache.org on 2022/05/18 00:00:29 UTC

[tvm] 30/36: fix jenkinsfile

This is an automated email from the ASF dual-hosted git repository.

areusch pushed a commit to branch areusch/freeze-dependencies
in repository https://gitbox.apache.org/repos/asf/tvm.git

commit 376aeaee10120077157a7adf28e7b2b76cd04c74
Author: Andrew Reusch <ar...@gmail.com>
AuthorDate: Fri May 13 15:21:20 2022 -0700

    fix jenkinsfile
---
 Jenkinsfile            | 17 ++++++++++-------
 jenkins/Jenkinsfile.j2 | 15 +++++++++------
 2 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index f94e53c6a6..e81bae1a09 100755
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -45,7 +45,7 @@
 // 'python3 jenkins/generate.py'
 // Note: This timestamp is here to ensure that updates to the Jenkinsfile are
 // always rebased on main before merging:
-// Generated at 2022-05-13T17:18:11.741466
+// Generated at 2022-05-13T17:18:18.841574
 
 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
 // NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. -->
@@ -332,12 +332,15 @@ def freeze_python_deps() {
     script: "docker/build.sh ci_py_deps",
     label: "Build image for ci_py_deps"
   )
-  sh(
-    script: "docker/python/freeze-dependencies.sh",
-    label: "Build image for ci_py_deps"
-  )
-  archiveArtifacts artifacts: "docker/build/base_${arch_name}/**", fingerprint: true
-  pack_lib("${arch_name}-lockfiles", "docker/python/build/**")
+  try {
+    sh(
+      script: "docker/python/freeze-dependencies.sh",
+      label: "Build image for ci_py_deps"
+    )
+  } finally {
+    archiveArtifacts artifacts: "docker/python/build/**", fingerprint: true
+    pack_lib("${arch_name}-lockfiles", "docker/python/build/**")
+  }
 }
 
 def build_image(arch_name, image_name) {
diff --git a/jenkins/Jenkinsfile.j2 b/jenkins/Jenkinsfile.j2
index 9f39173097..2e8d162e37 100644
--- a/jenkins/Jenkinsfile.j2
+++ b/jenkins/Jenkinsfile.j2
@@ -249,12 +249,15 @@ def freeze_python_deps() {
     script: "docker/build.sh ci_py_deps",
     label: "Build image for ci_py_deps"
   )
-  sh(
-    script: "docker/python/freeze-dependencies.sh",
-    label: "Build image for ci_py_deps"
-  )
-  archiveArtifacts artifacts: "docker/build/base_${arch_name}/**", fingerprint: true
-  pack_lib("${arch_name}-lockfiles", "docker/python/build/**")
+  try {
+    sh(
+      script: "docker/python/freeze-dependencies.sh",
+      label: "Build image for ci_py_deps"
+    )
+  } finally {
+    archiveArtifacts artifacts: "docker/python/build/**", fingerprint: true
+    pack_lib("${arch_name}-lockfiles", "docker/python/build/**")
+  }
 }
 
 def build_image(arch_name, image_name) {