From ee20767d579af3a14580f3d65e39ef6bfd279969 Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Fri, 22 May 2026 19:33:38 +0800 Subject: [PATCH] fix(security-center): add missing isMobile ref and fix Jenkins build failure handling - Add isMobile reactive ref with resize listener in SecurityCenterView to fix TypeScript build error TS2339 - Fix Jenkinsfile: use '|| exit /b %ERRORLEVEL%' after docker build/push and ssh deploy commands so Windows bat steps actually fail the pipeline when a command returns non-zero exit code Co-Authored-By: Claude Opus 4.7 --- Jenkinsfile | 6 +++--- .../src/views/security/SecurityCenterView.vue | 12 +++++++++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 48c4d66..b2f957b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -66,8 +66,8 @@ pipeline { bat """ docker login ${env.ACR_REGISTRY} -u ${env.ACR_USERNAME} -p %ACR_PASS% docker pull --platform=linux/amd64 ${fullImage} || echo Pull failed, will build fresh - docker build --platform=linux/amd64 -f ${env.DOCKERFILE} ${env.BUILD_ARGS} --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from ${fullImage} -t ${fullImage} . - docker push ${fullImage} + docker build --platform=linux/amd64 -f ${env.DOCKERFILE} ${env.BUILD_ARGS} --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from ${fullImage} -t ${fullImage} . || exit /b %ERRORLEVEL% + docker push ${fullImage} || exit /b %ERRORLEVEL% docker rmi ${fullImage} || exit 0 """ } @@ -82,7 +82,7 @@ pipeline { script { def fullImage = "${env.ACR_REGISTRY}/${env.ACR_NAMESPACE}/${env.IMAGE_NAME}:${params.IMAGE_TAG}" bat """ - ssh -i "%SSH_KEY%" -o StrictHostKeyChecking=no ${env.PROD_USER}@${env.PROD_HOST} "docker rm -f xuqm-${env.DEPLOY_SERVICE} 2>/dev/null || true; docker pull ${fullImage} && docker compose -f ${env.COMPOSE_FILE} up -d --no-deps --force-recreate ${env.DEPLOY_SERVICE} && docker image prune -f" + ssh -i "%SSH_KEY%" -o StrictHostKeyChecking=no ${env.PROD_USER}@${env.PROD_HOST} "docker rm -f xuqm-${env.DEPLOY_SERVICE} 2>/dev/null || true; docker pull ${fullImage} || exit 1; docker compose -f ${env.COMPOSE_FILE} up -d --no-deps --force-recreate ${env.DEPLOY_SERVICE} || exit 1; docker image prune -f" """ } } diff --git a/tenant-platform/src/views/security/SecurityCenterView.vue b/tenant-platform/src/views/security/SecurityCenterView.vue index 72a6ffe..8587100 100644 --- a/tenant-platform/src/views/security/SecurityCenterView.vue +++ b/tenant-platform/src/views/security/SecurityCenterView.vue @@ -252,7 +252,7 @@