CI: Add zip package and archive artifacts as single zip file

This commit is contained in:
xiaozhou233 committed 2026-08-12 15:04:58 +08:00
1 parent b8e2ace91c
commit 2d1492f3e4
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -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 \
Vendored
+2 -2
View File
@@ -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
}
}
}