This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch Jenksinsfile-clean
in repository https://gitbox.apache.org/repos/asf/camel-karaf.git

commit f98b6f298f33b9363b2757414beb06b16b20ac3f
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu Oct 8 08:00:47 2020 +0200

    Jenkinsfile.karaf.jdk11: Lets clean the workspace as default
---
 Jenkinsfile.karaf.jdk11 | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Jenkinsfile.karaf.jdk11 b/Jenkinsfile.karaf.jdk11
index 79d43de..ebed834 100644
--- a/Jenkinsfile.karaf.jdk11
+++ b/Jenkinsfile.karaf.jdk11
@@ -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 {

Reply via email to