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

khmarbaise pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 97409ae  INFRA-16749, INFRA-16768  - Followup
97409ae is described below

commit 97409ae1d3d4f36239dde1e1976ec8ef47908cfa
Author: Karl Heinz Marbaise <[email protected]>
AuthorDate: Sat Jul 14 11:07:52 2018 +0200

    INFRA-16749, INFRA-16768
     - Followup
---
 vars/asfMavenTlpPlgnBuild.groovy | 2 ++
 vars/asfMavenTlpStdBuild.groovy  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/vars/asfMavenTlpPlgnBuild.groovy b/vars/asfMavenTlpPlgnBuild.groovy
index a4a39d9..38f031d 100644
--- a/vars/asfMavenTlpPlgnBuild.groovy
+++ b/vars/asfMavenTlpPlgnBuild.groovy
@@ -145,6 +145,8 @@ def doCreateTask( os, jdk, maven, tasks, first, plan, 
taskContext )
             checkout scm
           }
         } catch (Throwable e) {
+          // First step to keep the workspace clean and safe disk space
+          cleanWs()
           if (!taskContext.failFast) {
             throw e
           } else if (taskContext.failingFast == null) {
diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy
index 32e26b9..77294d9 100644
--- a/vars/asfMavenTlpStdBuild.groovy
+++ b/vars/asfMavenTlpStdBuild.groovy
@@ -81,6 +81,8 @@ def call(Map params = [:]) {
                   checkout scm
                 }
               } catch (Throwable e) {
+                // First step to keep the workspace clean and safe disk space
+                cleanWs()
                 if (!failFast) {
                   throw e
                 } else if (failingFast == null) {

Reply via email to