diff options
| author | Max Nanis | 2026-09-13 20:53:13 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-09-13 20:53:13 -0700 |
| commit | aef85c15f867b218ed108a52c40a761cf46750bb (patch) | |
| tree | 6360c30427040511ad61efe1628a91eb8cc71305 | |
| parent | 86c37799f8cc224e020b41f6082c112a8a5421f6 (diff) | |
| download | amt-jb-aef85c15f867b218ed108a52c40a761cf46750bb.tar.gz amt-jb-aef85c15f867b218ed108a52c40a761cf46750bb.zip | |
dont check static file size when name is now dynamic
| -rw-r--r-- | jb-ui/Jenkinsfile | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/jb-ui/Jenkinsfile b/jb-ui/Jenkinsfile index 7477c18..7b55575 100644 --- a/jb-ui/Jenkinsfile +++ b/jb-ui/Jenkinsfile @@ -62,18 +62,17 @@ pipeline { steps { dir('jb-ui') { sh 'pnpm run build' - script { - dir(env.BUILD_DIR) { - def minSize = 750 * 1024 - def size = sh(script: "stat -c%s ${env.JS_FILENAME}.js", returnStdout: true).trim().toInteger() - - if (size < minSize) { - error "Build is too small: ${size} bytes" - } else { - echo "Build size is acceptable: ${size} bytes" - } - } - } + // script { + // dir(env.BUILD_DIR) { + // def minSize = 750 * 1024 + // def size = sh(script: "stat -c%s ${env.JS_FILENAME}.js", returnStdout: true).trim().toInteger() + // if (size < minSize) { + // error "Build is too small: ${size} bytes" + // } else { + // echo "Build size is acceptable: ${size} bytes" + // } + // } + // } } } } |
