mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
CI: Add Jenkins pipeline building image and archiving artifacts
This commit is contained in:
1 parent
9ecd2e4e03
commit
4fde6477c6
1 file changed
+30
Vendored
+30
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user