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 2c31019ef53fd6da626b2f4f975083cae17caec3
Author: Andrew Reusch <[email protected]>
AuthorDate: Mon Jun 13 17:03:10 2022 -0700

    fix escape
---
 Jenkinsfile                   | 8 ++++----
 jenkins/DockerBuild.groovy.j2 | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 69333c13e6..57f63b7897 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-06-13T16:39:11.598304
+// Generated at 2022-06-13T17:19:48.116517
 
 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
 // NOTE: these lines are scanned by docker/dev_common.sh. Please update the 
regex as needed. -->
@@ -317,9 +317,9 @@ def ecr_push(full_name) {
       )
       sh(
         script: """
-          set -x
-          docker tag ${full_name} \$AWS_ECR_REPO/${full_name}
-          docker push \$AWS_ECR_REPO/${full_name}
+          set -eux
+          docker tag ${full_name} ${ecr_name}
+          docker push ${ecr_name}
         """,
         label: 'Upload image to ECR'
       )
diff --git a/jenkins/DockerBuild.groovy.j2 b/jenkins/DockerBuild.groovy.j2
index 80ee66a6ae..0b1913ef57 100644
--- a/jenkins/DockerBuild.groovy.j2
+++ b/jenkins/DockerBuild.groovy.j2
@@ -20,9 +20,9 @@ def ecr_push(full_name) {
       )
       sh(
         script: """
-          set -x
-          docker tag ${full_name} \$AWS_ECR_REPO/${full_name}
-          docker push \$AWS_ECR_REPO/${full_name}
+          set -eux
+          docker tag ${full_name} ${ecr_name}
+          docker push ${ecr_name}
         """,
         label: 'Upload image to ECR'
       )

Reply via email to