From commits-return-18743-archive-asf-public=cust-asf.ponee.io@struts.apache.org Tue Feb 11 18:42:56 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0977718063F for ; Tue, 11 Feb 2020 19:42:55 +0100 (CET) Received: (qmail 74418 invoked by uid 500); 11 Feb 2020 18:42:55 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 74408 invoked by uid 99); 11 Feb 2020 18:42:55 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Feb 2020 18:42:55 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id D66AF8546B; Tue, 11 Feb 2020 18:42:54 +0000 (UTC) Date: Tue, 11 Feb 2020 18:42:54 +0000 To: "commits@struts.apache.org" Subject: [struts] branch master updated: Avoids parallel builds to avoid problems with clean MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <158144657462.30980.10344507289488313910@gitbox.apache.org> From: lukaszlenart@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: struts X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 5cc73a67caf7807d9bcdbd5ccf991a496aff3ad0 X-Git-Newrev: b806daeb1f7c265dbe6257f66010cbd8a6b053b5 X-Git-Rev: b806daeb1f7c265dbe6257f66010cbd8a6b053b5 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 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}' } } }