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-kafka-connector.git
commit 11667848370292ddd0f98c0c326fc081f93d9b0a Author: Andrea Cosentino <[email protected]> AuthorDate: Fri Oct 9 08:51:20 2020 +0200 Jenkinsfile.jdk11: Added a clean stage to the pipeline --- Jenkinsfile.jdk11 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Jenkinsfile.jdk11 b/Jenkinsfile.jdk11 index 62e8235..5e87d46 100644 --- a/Jenkinsfile.jdk11 +++ b/Jenkinsfile.jdk11 @@ -43,8 +43,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 & Deploy') { steps { sh "./mvnw $MAVEN_PARAMS -Dmaven.test.skip.exec=true clean install"
