From 2d1492f3e4666cb5f6b449d20abc055f7bbe62cf Mon Sep 17 00:00:00 2001 From: xiaozhou233 Date: Wed, 12 Aug 2026 15:04:58 +0800 Subject: [PATCH] CI: Add zip package and archive artifacts as single zip file --- Dockerfile | 1 + Jenkinsfile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3c6a937..8b07789 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,7 @@ RUN for i in 1 2 3 4 5; do \ git \ cmake \ ninja-build \ + zip \ gcc-mingw-w64-x86-64-posix \ g++-mingw-w64-x86-64-posix \ binutils-mingw-w64-x86-64 \ diff --git a/Jenkinsfile b/Jenkinsfile index 8100321..6d85f09 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,14 +13,14 @@ pipeline { } stage('Build') { steps { - sh 'docker run --rm -v "$WORKSPACE:/workspace" juiceagent-builder:latest bash -lc "cd /workspace && rm -rf build-mingw && cmake --preset mingw-release && cmake --build build-mingw"' + sh 'docker run --rm -v "$WORKSPACE:/workspace" juiceagent-builder:latest bash -lc "cd /workspace && rm -rf build-mingw && cmake --preset mingw-release && cmake --build build-mingw && cd build-mingw/bin && zip -9 -j /workspace/JuiceAgent-windows-x64.zip *.exe *.dll"' } } } post { success { - archiveArtifacts artifacts: 'build-mingw/bin/*.exe,build-mingw/bin/*.dll', fingerprint: true, allowEmptyArchive: false + archiveArtifacts artifacts: 'JuiceAgent-windows-x64.zip', fingerprint: true, allowEmptyArchive: false } } }