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 Maven related dirs
Date Wed, 12 Feb 2020 20:09:22 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 4a609d8  Cleans up Maven related dirs
4a609d8 is described below

commit 4a609d84d4ce5959bccb5aeff88c2755b4d79ccb
Author: Lukasz Lenart <lukaszlenart@apache.org>
AuthorDate: Wed Feb 12 21:09:17 2020 +0100

    Cleans up Maven related dirs
---
 Jenkinsfile | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 2921f84..1d84d64 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -13,11 +13,6 @@ pipeline {
     pollSCM 'H/15 * * * *'
   }
   stages {
-    stage('Cleanup') {
-      steps {
-        cleanWs()
-      }
-    }
     stage('JDK 11') {
       agent {
         docker {
@@ -27,9 +22,14 @@ pipeline {
         }
       }
       stages {
+        stage('Clean Up') {
+          steps {
+            cleanWs deleteDirs: true, patterns: [[pattern: '**/target/**', type: 'INCLUDE']]
+          }
+        }
         stage('Build') {
           steps {
-            sh 'mvn -B clean package -DskipTests -DskipAssembly'
+            sh 'mvn -B package -DskipTests -DskipAssembly'
           }
         }
         stage('Test') {
@@ -55,6 +55,11 @@ pipeline {
         }
       }
       stages {
+        stage('Clean Up') {
+          steps {
+            cleanWs deleteDirs: true, patterns: [[pattern: '**/target/**', type: 'INCLUDE']]
+          }
+        }
         stage('Build') {
           steps {
             sh 'mvn -B clean package -DskipTests -DskipAssembly'
@@ -83,6 +88,11 @@ pipeline {
         }
       }
       stages {
+        stage('Clean Up') {
+          steps {
+            cleanWs deleteDirs: true, patterns: [[pattern: '**/target/**', type: 'INCLUDE']]
+          }
+        }
         stage('Build') {
           steps {
             sh 'mvn -B clean package -DskipTests -DskipAssembly'


Mime
View raw message