diff --git a/Jenkinsfile b/Jenkinsfile index 0b3be53..9fc30ca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,6 +16,15 @@ pipeline { } stages { + stage('Clean') { + dir ('build/vs2022/Release') { + deleteDir() + } + dir ('dist') { + deleteDir() + } + } + stage('Build') { steps { bat ''' @@ -30,13 +39,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' } } }