You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/10/09 06:51:52 UTC
[camel-kafka-connector] 01/02: Jenkinsfile: Add a clean stage to
the pipeline
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch jenkinsfile-clean
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git
commit 99bfb6090a765376381fb88f360c722a54b96ab9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 9 08:50:45 2020 +0200
Jenkinsfile: Add a clean stage to the pipeline
---
Jenkinsfile | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/Jenkinsfile b/Jenkinsfile
index 6c4b833..db0ab91 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -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"