mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
27 lines
775 B
Groovy
27 lines
775 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
environment {
|
|
DOCKER_IMAGE = 'juiceagent-builder:latest'
|
|
}
|
|
|
|
stages {
|
|
stage('Build Image') {
|
|
steps {
|
|
sh 'docker build -t juiceagent-builder:latest .'
|
|
}
|
|
}
|
|
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 && cd build-mingw/bin && zip -9 -j /workspace/JuiceAgent-windows-x64.zip *.exe *.dll"'
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
success {
|
|
archiveArtifacts artifacts: 'JuiceAgent-windows-x64.zip', fingerprint: true, allowEmptyArchive: false
|
|
}
|
|
}
|
|
}
|