From 8d3b6f5ca5d3da6c43138663b1e555f4d5bcefcf 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 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0b3be53..8125655 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } } }