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.git
commit e16b983b78250754fd0bcde75d3714417b81ef8d Author: Andrea Cosentino <[email protected]> AuthorDate: Wed Oct 7 12:04:20 2020 +0200 Added a CLEAN stage to Jenkinsfile to Jenkinsfile.jdk11 --- Jenkinsfile.jdk11 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Jenkinsfile.jdk11 b/Jenkinsfile.jdk11 index f6709f2..bf7f4c2 100644 --- a/Jenkinsfile.jdk11 +++ b/Jenkinsfile.jdk11 @@ -43,8 +43,21 @@ pipeline { disableConcurrentBuilds() } + parameters { + booleanParam(name: 'CLEAN', defaultValue: false, description: 'Perform the build in clean workspace') + } + stages { + stage('Clean workspace') { + when { + expression { params.CLEAN } + } + steps { + sh 'git clean -fdx' + } + } + stage('Build & Deploy') { when { branch 'master'
