clean jenkins workspace (post build)
Gitea/subman-nextjs/pipeline/head There was a failure building this commit Details

This commit is contained in:
andrzej 2024-10-03 17:59:21 +02:00
parent b16d293e27
commit 740a57b30e
1 changed files with 11 additions and 0 deletions

11
Jenkinsfile vendored
View File

@ -21,4 +21,15 @@ agent any
}
}
}
post {
// Clean after build
always {
cleanWs(cleanWhenNotBuilt: true,
deleteDirs: true,
disableDeferredWipeout: true,
notFailBuild: true,
patterns: [[pattern: '.gitignore', type: 'INCLUDE'],
[pattern: '.propsfile', type: 'EXCLUDE']])
}
}
}