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: Avoids parallel builds to avoid problems with clean
Date Tue, 11 Feb 2020 18:42:54 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 b806dae  Avoids parallel builds to avoid problems with clean
b806dae is described below

commit b806daeb1f7c265dbe6257f66010cbd8a6b053b5
Author: Lukasz Lenart <lukaszlenart@apache.org>
AuthorDate: Tue Feb 11 19:42:45 2020 +0100

    Avoids parallel builds to avoid problems with clean
---
 Jenkinsfile | 182 ++++++++++++++++++++++++++++++------------------------------
 1 file changed, 90 insertions(+), 92 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 688aa95..1186e4e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -15,121 +15,119 @@ pipeline {
   }
   stages {
     stage('Build on various JDKs') {
-      parallel {
-        stage('JDK 11') {
-          agent {
-            docker {
-              label 'ubuntu'
-              image 'maven:3-jdk-11'
-              args "$dockerArgs"
-              reuseNode true
+      stage('JDK 11') {
+        agent {
+          docker {
+            label 'ubuntu'
+            image 'maven:3-jdk-11'
+            args "$dockerArgs"
+            reuseNode true
+          }
+        }
+        stages {
+          stage('Build') {
+            steps {
+              sh 'mvn -B clean package -DskipTests -DskipAssembly'
             }
           }
-          stages {
-            stage('Build') {
-              steps {
-                sh 'mvn -B clean package -DskipTests -DskipAssembly'
-              }
+          stage('Test') {
+            steps {
+              sh 'mvn -B test'
+              step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'],
scm: scm])
             }
-            stage('Test') {
-              steps {
-                sh 'mvn -B test'
-                step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'],
scm: scm])
-              }
-              post {
-                always {
-                  junit(testResults: '**/surefire-reports/*.xml', allowEmptyResults: true)
-                  junit(testResults: '**/failsafe-reports/*.xml', allowEmptyResults: true)
-                }
+            post {
+              always {
+                junit(testResults: '**/surefire-reports/*.xml', allowEmptyResults: true)
+                junit(testResults: '**/failsafe-reports/*.xml', allowEmptyResults: true)
               }
             }
           }
         }
-        stage('JDK 9') {
-          agent {
-            docker {
-              label 'ubuntu'
-              image 'maven:3-jdk-9'
-              args "$dockerArgs"
-              reuseNode true
+      }
+      stage('JDK 9') {
+        agent {
+          docker {
+            label 'ubuntu'
+            image 'maven:3-jdk-9'
+            args "$dockerArgs"
+            reuseNode true
+          }
+        }
+        stages {
+          stage('Build') {
+            steps {
+              sh 'mvn -B clean package -DskipTests -DskipAssembly'
             }
           }
-          stages {
-            stage('Build') {
-              steps {
-                sh 'mvn -B clean package -DskipTests -DskipAssembly'
-              }
+          stage('Test') {
+            steps {
+              sh 'mvn -B test'
+              step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'],
scm: scm])
             }
-            stage('Test') {
-              steps {
-                sh 'mvn -B test'
-                step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'],
scm: scm])
-              }
-              post {
-                always {
-                  junit(testResults: '**/surefire-reports/*.xml', allowEmptyResults: true)
-                  junit(testResults: '**/failsafe-reports/*.xml', allowEmptyResults: true)
-                }
+            post {
+              always {
+                junit(testResults: '**/surefire-reports/*.xml', allowEmptyResults: true)
+                junit(testResults: '**/failsafe-reports/*.xml', allowEmptyResults: true)
               }
             }
           }
         }
-        stage('JDK 8') {
-          agent {
-            docker {
-              label 'ubuntu'
-              image 'maven:3-jdk-8'
-              args "$dockerArgs"
-              reuseNode true
+      }
+      stage('JDK 8') {
+        agent {
+          docker {
+            label 'ubuntu'
+            image 'maven:3-jdk-8'
+            args "$dockerArgs"
+            reuseNode true
+          }
+        }
+        stages {
+          stage('Build') {
+            steps {
+              sh 'mvn -B clean package -DskipTests -DskipAssembly'
             }
           }
-          stages {
-            stage('Build') {
-              steps {
-                sh 'mvn -B clean package -DskipTests -DskipAssembly'
-              }
+          stage('Test') {
+            steps {
+              sh 'mvn -B test'
+              step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'],
scm: scm])
             }
-            stage('Test') {
-              steps {
-                sh 'mvn -B test'
-                step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'],
scm: scm])
-              }
-              post {
-                always {
-                  junit(testResults: '**/surefire-reports/*.xml', allowEmptyResults: true)
-                  junit(testResults: '**/failsafe-reports/*.xml', allowEmptyResults: true)
-                }
+            post {
+              always {
+                junit(testResults: '**/surefire-reports/*.xml', allowEmptyResults: true)
+                junit(testResults: '**/failsafe-reports/*.xml', allowEmptyResults: true)
               }
             }
-            stage('Build Source & JavaDoc') {
-              when {
-                branch 'master'
-              }
-              steps {
-                dir("local-snapshots-dir/") {
-                  deleteDir()
-                }
-                sh 'mvn -B source:jar javadoc:jar -DskipAssembbly'
-              }
+          }
+          stage('Build Source & JavaDoc') {
+            when {
+              branch 'master'
             }
-            stage('Deploy Snapshot') {
-              when {
-                branch 'master'
-              }
-              steps {
-                withCredentials([file(credentialsId: 'struts-custom-settings_xml', variable:
'CUSTOM_SETTINGS')]) {
-                  sh 'mvn -s \${CUSTOM_SETTINGS} deploy -skipAssembly'
-                }
+            steps {
+              dir("local-snapshots-dir/") {
+                deleteDir()
               }
+              sh 'mvn -B source:jar javadoc:jar -DskipAssembbly'
             }
-            stage('Code Quality') {
-              when {
-                branch 'master'
+          }
+          stage('Deploy Snapshot') {
+            when {
+              branch 'master'
+            }
+            steps {
+              withCredentials([file(credentialsId: 'struts-custom-settings_xml', variable:
'CUSTOM_SETTINGS')]) {
+                sh 'mvn -s \${CUSTOM_SETTINGS} deploy -skipAssembly'
               }
-              steps {
-                withCredentials([string(credentialsId: 'asf-struts-sonarcloud', variable:
'SONARCLOUD_TOKEN')]) {
-                  sh 'mvn sonar:sonar -DskipAssembly -Dsonar.projectKey=apache_struts -Dsonar.organization=apache
-Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONARCLOUD_TOKEN}'
-                }
+            }
+          }
+          stage('Code Quality') {
+            when {
+              branch 'master'
+            }
+            steps {
+              withCredentials([string(credentialsId: 'asf-struts-sonarcloud', variable: 'SONARCLOUD_TOKEN')])
{
+                sh 'mvn sonar:sonar -DskipAssembly -Dsonar.projectKey=apache_struts -Dsonar.organization=apache
-Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONARCLOUD_TOKEN}'
               }
             }
           }


Mime
View raw message