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 W before running stages
Date Wed, 12 Feb 2020 20:01:02 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 991d4f9  Cleans up W before running stages
991d4f9 is described below

commit 991d4f9ab3810d529a6c39921f46b2979f8f0330
Author: Lukasz Lenart <lukaszlenart@apache.org>
AuthorDate: Wed Feb 12 21:00:56 2020 +0100

    Cleans up W before running stages
---
 Jenkinsfile | 34 ++++++++++++----------------------
 1 file changed, 12 insertions(+), 22 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 4cd60e0..2921f84 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -6,13 +6,18 @@ pipeline {
     buildDiscarder logRotator(daysToKeepStr: '14', numToKeepStr: '10')
     timeout(80)
     disableConcurrentBuilds()
-    // skipStagesAfterUnstable()
+    skipStagesAfterUnstable()
     quietPeriod(30)
   }
   triggers {
     pollSCM 'H/15 * * * *'
   }
   stages {
+    stage('Cleanup') {
+      steps {
+        cleanWs()
+      }
+    }
     stage('JDK 11') {
       agent {
         docker {
@@ -22,20 +27,15 @@ pipeline {
         }
       }
       stages {
-        stage('Cleanup') {
-          steps {
-            step([$class: 'WsCleanup'])
-          }
-        }
         stage('Build') {
           steps {
-            sh 'mvn -B package -DskipTests -DskipAssembly'
+            sh 'mvn -B clean package -DskipTests -DskipAssembly'
           }
         }
         stage('Test') {
           steps {
             sh 'mvn -B test'
-            step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'],
scm: scm])
+            // step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'],
scm: scm])
           }
           post {
             always {
@@ -55,20 +55,15 @@ pipeline {
         }
       }
       stages {
-        stage('Cleanup') {
-          steps {
-            step([$class: 'WsCleanup'])
-          }
-        }
         stage('Build') {
           steps {
-            sh 'mvn -B package -DskipTests -DskipAssembly'
+            sh 'mvn -B clean package -DskipTests -DskipAssembly'
           }
         }
         stage('Test') {
           steps {
             sh 'mvn -B test'
-            step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'],
scm: scm])
+            // step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'],
scm: scm])
           }
           post {
             always {
@@ -88,20 +83,15 @@ pipeline {
         }
       }
       stages {
-        stage('Cleanup') {
-          steps {
-            step([$class: 'WsCleanup'])
-          }
-        }
         stage('Build') {
           steps {
-            sh 'mvn -B package -DskipTests -DskipAssembly'
+            sh 'mvn -B clean package -DskipTests -DskipAssembly'
           }
         }
         stage('Test') {
           steps {
             sh 'mvn -B test'
-            step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'],
scm: scm])
+            // step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'],
scm: scm])
           }
           post {
             always {


Mime
View raw message