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/07 10:06:43 UTC

[camel] 04/04: Added a CLEAN stage to Jenkinsfile to Jenkinsfile.jdk14

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

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

commit 00d29ed4ea96bdef9c119e06f7931d36dd736bd6
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Oct 7 12:05:59 2020 +0200

    Added a CLEAN stage to Jenkinsfile to Jenkinsfile.jdk14
---
 Jenkinsfile.jdk14 | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Jenkinsfile.jdk14 b/Jenkinsfile.jdk14
index 25523de..622b76b 100644
--- a/Jenkinsfile.jdk14
+++ b/Jenkinsfile.jdk14
@@ -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'