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 2021/01/11 07:30:48 UTC

[struts] branch master updated: Drops builds on JDK9 and moves SonarCloud under JDK11

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 b25e26c  Drops builds on JDK9 and moves SonarCloud under JDK11
b25e26c is described below

commit b25e26cdea6bb4ffe7f4eae7a596e055de0cba20
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Mon Jan 11 08:30:42 2021 +0100

    Drops builds on JDK9 and moves SonarCloud under JDK11
---
 Jenkinsfile | 48 ++++++------------------------------------------
 1 file changed, 6 insertions(+), 42 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 05cdb28..bb07e60 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -55,39 +55,13 @@ pipeline {
           }
         }
       }
-      post {
-        always {
-          cleanWs deleteDirs: true, patterns: [[pattern: '**/target/**', type: 'INCLUDE']]
+      stage('Code Quality') {
+        when {
+          branch 'master'
         }
-      }
-    }
-    stage('JDK 9') {
-      agent {
-        label 'ubuntu'
-      }
-      tools {
-        jdk 'jdk_1.9_latest'
-        maven 'maven_3_latest'
-      }
-      environment {
-        MAVEN_OPTS = "-Xmx1024m"
-      }
-      stages {
-        stage('Build') {
-          steps {
-            sh 'mvn -B clean install -DskipTests -DskipAssembly'
-          }
-        }
-        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)
-            }
+        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}'
           }
         }
       }
@@ -167,16 +141,6 @@ pipeline {
             ])
           }
         }
-        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}'
-            }
-          }
-        }
       }
       post {
         always {