From ca62573a75fb24dd42c34005e90d9c818c0a0ef0 Mon Sep 17 00:00:00 2001 From: andrew clark Date: Tue, 30 Sep 2025 13:46:06 -0600 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8dc6ea83b1..5fc9424373 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1211,7 +1211,9 @@ pipeline { stages{ stage("Check for changes") { agent{ label rocmnode("nogpu") } - echo "SHOULD_RUN_CI: ${SHOULD_RUN_CI}" + steps { + echo "SHOULD_RUN_CI: ${SHOULD_RUN_CI}" + } } stage("Build Docker"){ when { @@ -1875,13 +1877,15 @@ pipeline { } post { always { - if (!env.SHOULD_RUN_CI.toBoolean()) { - // If CI was skipped, notify each of the branch protected checks that they are successful. - def requiredChecks = getRequiredBranchChecks() - requiredChecks.each { checkName -> - echo "pass skipped check: ${checkName}" + script { + if (!env.SHOULD_RUN_CI.toBoolean()) { + // If CI was skipped, notify each of the branch protected checks that they are successful. + def requiredChecks = getRequiredBranchChecks() + requiredChecks.each { checkName -> + echo "pass skipped check: ${checkName}" + } } - } + } } } }