You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2020/02/13 07:49:06 UTC
[struts] branch master updated: Moves checkout after cleanup
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 c80b8b8 Moves checkout after cleanup
c80b8b8 is described below
commit c80b8b834067ec7862089260ba13f391dced1be6
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Thu Feb 13 08:48:58 2020 +0100
Moves checkout after cleanup
---
Jenkinsfile | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 0601153..4adaf1a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -13,6 +13,23 @@ pipeline {
pollSCM 'H/15 * * * *'
}
stages {
+ stage('Prepare') {
+ agent {
+ label 'ubuntu'
+ }
+ stages {
+ stage('Clean Up') {
+ steps {
+ cleanWs deleteDirs: true, patterns: [[pattern: '**/target/**', type: 'INCLUDE']]
+ }
+ }
+ stage('Checkout') {
+ steps {
+ checkout scm
+ }
+ }
+ }
+ }
stage('JDK 11') {
agent {
label 'ubuntu'
@@ -25,11 +42,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'