From 7ad4f948fbceb67463c3555ea362f9441bc83d87 Mon Sep 17 00:00:00 2001 From: Siddharth Sharma Date: Thu, 9 May 2024 09:30:51 -0400 Subject: [PATCH] Fix exception var (#4156) --- jobs/build/promote-assembly/Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jobs/build/promote-assembly/Jenkinsfile b/jobs/build/promote-assembly/Jenkinsfile index d42506fc35..cbfae98622 100644 --- a/jobs/build/promote-assembly/Jenkinsfile +++ b/jobs/build/promote-assembly/Jenkinsfile @@ -212,13 +212,13 @@ node { echo "artcd returns:\n$out" try { release_info = readJSON(text: out) - } catch (exception) { + } catch (ex1) { // retry since this is often flaky try { release_info = readJSON(text: out) - } catch (exception) { + } catch (ex2) { slacklib.to(params.VERSION).say("@release-artists Promote failed since it couldn't parse pyartcd json. Please investigate/retry") - throw exception + throw ex2 } } }