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 } } }