Files
JuiceAgent/Jenkinsfile
T
xiaozhou233 c5889cb338 CI: package committed binaries and example into two release artifacts
Drop on-the-fly compilation; the binaries and example JARs are now
committed to the repo. Jenkinsfile packages and archives:
  - JuiceAgent-windows-x64.zip (pure binaries)
  - JuiceAgent-windows-x64-examples.zip (binaries + runnable example)
Update examples/.gitignore to track prebuilt artifacts.
2026-08-12 20:50:43 +08:00

27 lines
677 B
Groovy

pipeline {
agent any
environment {
DOCKER_IMAGE = 'juiceagent-builder:latest'
}
stages {
stage('Build Image') {
steps {
sh 'docker build -t juiceagent-builder:latest .'
}
}
stage('Package') {
steps {
sh 'docker run --rm -v "$WORKSPACE:/workspace" juiceagent-builder:latest bash -lc "cd /workspace && bash tools/build-release.sh"'
}
}
}
post {
success {
archiveArtifacts artifacts: 'JuiceAgent-windows-x64.zip, JuiceAgent-windows-x64-examples.zip', fingerprint: true, allowEmptyArchive: false
}
}
}