This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
commit 6282197a9586a77f3df659275085b556bf9b1976 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu Oct 8 08:18:20 2020 +0200 Jenkinsfile.sb: Lets clean the workspace as default --- Jenkinsfile.sb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Jenkinsfile.sb b/Jenkinsfile.sb index a84af93..13de6cb 100644 --- a/Jenkinsfile.sb +++ b/Jenkinsfile.sb @@ -50,8 +50,21 @@ pipeline { disableConcurrentBuilds() } + parameters { + booleanParam(name: 'CLEAN', defaultValue: true, description: 'Perform the build in clean workspace') + } + stages { + stage('Clean workspace') { + when { + expression { params.CLEAN } + } + steps { + sh 'git clean -fdx' + } + } + stage('Build') { steps { script {