ci: clear dir before build

This commit is contained in:
鲁树人 2024-11-26 06:38:47 +09:00
parent 12ce7cfeea
commit 94a8c578e0

13
Jenkinsfile vendored
View File

@ -16,6 +16,15 @@ pipeline {
} }
stages { stages {
stage('Clean') {
dir ('build/vs2022/Release') {
deleteDir()
}
dir ('dist') {
deleteDir()
}
}
stage('Build') { stage('Build') {
steps { steps {
bat ''' bat '''
@ -30,13 +39,13 @@ pipeline {
stage('Archive') { stage('Archive') {
steps { steps {
bat ''' bat '''
7za a -tzip -mtm- build/kgg-dec.zip .\\build\\vs2022\\Release\\* 7za a -tzip -mtm- dist/kgg-dec.zip .\\build\\vs2022\\Release\\*
''' '''
} }
post { post {
success { success {
archiveArtifacts 'build/*.zip' archiveArtifacts 'dist/*.zip'
} }
} }
} }