ci: clear dir before build
This commit is contained in:
parent
12ce7cfeea
commit
8d3b6f5ca5
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user