struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [struts] branch master updated: Cleans up WS on beginning and after each JDK stage
Date Thu, 13 Feb 2020 07:14:41 GMT
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts.git


The following commit(s) were added to refs/heads/master by this push:
     new 668843e  Cleans up WS on beginning and after each JDK stage
668843e is described below

commit 668843e010ffad3679e7f91088bb0ca3b097f9cb
Author: Lukasz Lenart <lukaszlenart@apache.org>
AuthorDate: Thu Feb 13 08:14:35 2020 +0100

    Cleans up WS on beginning and after each JDK stage
---
 Jenkinsfile | 39 +++++++++++++++++++++------------------
 1 file changed, 21 insertions(+), 18 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 5fcc501..b5e8cd3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -13,6 +13,11 @@ pipeline {
     pollSCM 'H/15 * * * *'
   }
   stages {
+    stage('Clean Up') {
+      steps {
+        cleanWs deleteDirs: true, patterns: [[pattern: '**/target/**', type: 'INCLUDE']]
+      }
+    }
     stage('JDK 11') {
       agent {
         label 'ubuntu'
@@ -25,11 +30,6 @@ pipeline {
         MAVEN_OPTS = "-Xmx1024m"
       }
       stages {
-        stage('Clean Up') {
-          steps {
-            cleanWs deleteDirs: true, patterns: [[pattern: '**/target/**', type: 'INCLUDE']]
-          }
-        }
         stage('Build') {
           steps {
             sh 'mvn -B package -DskipTests -DskipAssembly'
@@ -48,6 +48,11 @@ pipeline {
           }
         }
       }
+      post {
+        always {
+          cleanWs deleteDirs: true, patterns: [[pattern: '**/target/**', type: 'INCLUDE']]
+        }
+      }
     }
     stage('JDK 9') {
       agent {
@@ -61,11 +66,6 @@ pipeline {
         MAVEN_OPTS = "-Xmx1024m"
       }
       stages {
-        stage('Clean Up') {
-          steps {
-            cleanWs deleteDirs: true, patterns: [[pattern: '**/target/**', type: 'INCLUDE']]
-          }
-        }
         stage('Build') {
           steps {
             sh 'mvn -B clean package -DskipTests -DskipAssembly'
@@ -84,6 +84,11 @@ pipeline {
           }
         }
       }
+      post {
+        always {
+          cleanWs deleteDirs: true, patterns: [[pattern: '**/target/**', type: 'INCLUDE']]
+        }
+      }
     }
     stage('JDK 8') {
       agent {
@@ -97,11 +102,6 @@ pipeline {
         MAVEN_OPTS = "-Xmx1024m"
       }
       stages {
-        stage('Clean Up') {
-          steps {
-            cleanWs deleteDirs: true, patterns: [[pattern: '**/target/**', type: 'INCLUDE']]
-          }
-        }
         stage('Build') {
           steps {
             sh 'mvn -B clean package -DskipTests -DskipAssembly'
@@ -152,8 +152,12 @@ pipeline {
         }
       }
     }
+    post {
+      always {
+        cleanWs deleteDirs: true, patterns: [[pattern: '**/target/**', type: 'INCLUDE']]
+      }
+    }
   }
-/*
   post {
     // If this build failed, send an email to the list.
     failure {
@@ -203,5 +207,4 @@ pipeline {
       }
     }
   }
- */
-}
\ No newline at end of file
+}


Mime
View raw message