camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] 01/04: Added a CLEAN stage to Jenkinsfile to Jenkinsfile.deploy
Date Wed, 07 Oct 2020 10:06:40 GMT
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 ab7c51ab228e34ce623f35b9dc113dab03e50f55
Author: Andrea Cosentino <ancosen@gmail.com>
AuthorDate: Wed Oct 7 11:58:56 2020 +0200

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

diff --git a/Jenkinsfile.deploy b/Jenkinsfile.deploy
index db6d992..765d9c3 100644
--- a/Jenkinsfile.deploy
+++ b/Jenkinsfile.deploy
@@ -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'


Mime
View raw message