From a2bbd112d9be167790536f0c733055bfa0fa4366 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Mon, 25 Apr 2022 03:51:46 -0500 Subject: [PATCH] Now deletes published assets. --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fad4760..7ca68fa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -43,15 +43,15 @@ pipeline { dotnetPublish configuration: 'Release', outputDirectory: 'props-linux-x64', project: 'Props', runtime: 'linux-x64', selfContained: true dotnetPublish configuration: 'Release', outputDirectory: 'props-win-x64', project: 'Props', runtime: 'win-x64', selfContained: true fingerprint 'Props/bin/Release/**/publish/Props*' - tar file: "props-linux-x64.tar.gz", archive: true, compress: true, dir: "props-linux-x64", overwrite: true - zip zipFile: "props-win-x64.zip", archive: true, dir: "props-win-x64", overwrite: true + tar file: "props-linux-x64.tar.gz", archive: true, compress: true, dir: "props-linux-x64" + zip zipFile: "props-win-x64.zip", archive: true, dir: "props-win-x64" } } } } stage("cleanup") { steps { - cleanWs(patterns: [[pattern: '**/bin/Release', type: 'INCLUDE']]) + cleanWs(patterns: [[pattern: '**/bin/Release', type: 'INCLUDE'], [pattern: 'props-linux-x64*', type: 'INCLUDE'], [pattern: 'props-win-x64*', type: 'INCLUDE']]) } } }