From 94a8c578e01a53f78be1378cd59360eced7c7a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Tue, 26 Nov 2024 06:38:47 +0900 Subject: [PATCH] ci: clear dir before build --- Jenkinsfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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' } } }