diff --git a/snippets/jenkins/template/general/Jenkinsfile b/snippets/jenkins/template/general/Jenkinsfile index 3bed245..d0d1a76 100644 --- a/snippets/jenkins/template/general/Jenkinsfile +++ b/snippets/jenkins/template/general/Jenkinsfile @@ -35,5 +35,8 @@ pipeline { } } } + cleanup { + cleanWs() + } } } diff --git a/snippets/jenkins/template/node/Jenkinsfile b/snippets/jenkins/template/node/Jenkinsfile index 81d532c..941783e 100644 --- a/snippets/jenkins/template/node/Jenkinsfile +++ b/snippets/jenkins/template/node/Jenkinsfile @@ -20,4 +20,10 @@ pipeline { } } } + + post { + cleanup { + cleanWs() + } + } }