CI: Add Jenkins pipeline building image and archiving artifacts

This commit is contained in:
xiaozhou233 committed 2026-08-12 14:53:04 +08:00
1 parent 9ecd2e4e03
commit 4fde6477c6
1 file changed
+30
Vendored
+30
View File
@@ -0,0 +1,30 @@
pipeline {
agent any
stages {
stage('Build Image') {
steps {
script {
docker.build('juiceagent-builder:latest')
}
}
}
stage('Build') {
steps {
script {
docker.image('juiceagent-builder:latest').inside() {
sh 'rm -rf build-mingw'
sh 'cmake --preset mingw-release'
sh 'cmake --build build-mingw'
}
}
}
}
}
post {
success {
archiveArtifacts artifacts: 'build-mingw/bin/*.exe,build-mingw/bin/*.dll', fingerprint: true, allowEmptyArchive: false
}
}
}