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 09:27:47 UTC

[camel] branch jenkinsfile-clean created (now ca61ef1)

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

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


      at ca61ef1  Added a CLEAN stage to Jenkinsfile

This branch includes the following new commits:

     new ca61ef1  Added a CLEAN stage to Jenkinsfile

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel] 01/01: Added a CLEAN stage to Jenkinsfile

Posted by ac...@apache.org.
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.git

commit ca61ef10ab1f8628ef9fead1596d353ef120f36d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Oct 7 11:19:08 2020 +0200

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

diff --git a/Jenkinsfile b/Jenkinsfile
index a30af7b..2e95392 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -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'