ci: clear dir before build

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

15
Jenkinsfile vendored
View File

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