mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
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.
27 lines
677 B
Groovy
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
|
|
}
|
|
}
|
|
}
|