mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
27 lines
707 B
Groovy
27 lines
707 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"'
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
success {
|
|
archiveArtifacts artifacts: 'build-mingw/bin/*.exe,build-mingw/bin/*.dll', fingerprint: true, allowEmptyArchive: false
|
|
}
|
|
}
|
|
}
|