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/08 06:23:38 UTC

[camel-spring-boot] 04/04: Jenkinsfile.sb.jdk14: Lets clean the workspace as default

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-spring-boot.git

commit 2082c0a59be52535e9b7fe42d9e5bc1e6f836a04
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Oct 8 08:22:47 2020 +0200

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

diff --git a/Jenkinsfile.sb.jdk14 b/Jenkinsfile.sb.jdk14
index ec82074..c4e7fa1 100644
--- a/Jenkinsfile.sb.jdk14
+++ b/Jenkinsfile.sb.jdk14
@@ -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 {