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: Drops one stage too much
Date Tue, 11 Feb 2020 18:52:13 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 c53a2c6  Drops one stage too much
c53a2c6 is described below

commit c53a2c6b99332e0d991461d2929bee00f8fda92d
Author: Lukasz Lenart <lukaszlenart@apache.org>
AuthorDate: Tue Feb 11 19:52:06 2020 +0100

    Drops one stage too much
---
 Jenkinsfile | 182 ++++++++++++++++++++++++++++++------------------------------
 1 file changed, 90 insertions(+), 92 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 1186e4e..07fe57b 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -14,121 +14,119 @@ pipeline {
     pollSCM 'H/15 * * * *'
   }
   stages {
-    stage('Build on various JDKs') {
-      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