From d6137a3ab6c584422d1c1e6880fd02c29df0a77b Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Mon, 14 Sep 2026 14:49:54 -0700 Subject: def vars aren't available out of script block scope. --- jb-ui/Jenkinsfile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/jb-ui/Jenkinsfile b/jb-ui/Jenkinsfile index a73ad59..a4809d4 100644 --- a/jb-ui/Jenkinsfile +++ b/jb-ui/Jenkinsfile @@ -64,11 +64,7 @@ pipeline { script { def props = readJSON file: 'dist/.vite/manifest.json' def jsFile = props["src/main.tsx"]["file"] - def cssFile = props["style.css"]["file"] - } - // echo "Deploying to ${envType} (v${version})" - script { dir(env.BUILD_DIR) { def minSize = 750 * 1024 def size = sh(script: "stat -c%s ${jsFile}", returnStdout: true).trim().toInteger() -- cgit v1.2.3