From 32be0e336a50729f12ac87902d6db52ac8983a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Tue, 25 Oct 2022 23:08:41 +0200 Subject: [PATCH] ensure publish does not exist --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 7c85059..d665a57 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,6 +10,12 @@ pipeline { } stages { + stage('cleaning workspace') { + steps { + sh "rm -rf ${env.WORKSPACE}/publish" + } + } + stage('nuget restore') { steps { sh "dotnet restore ${env.WORKSPACE}/src/PiwigoDotnet.sln"