You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2019/01/23 20:36:34 UTC

[maven] branch maven36x updated (aff4e34 -> af66373)

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a change to branch maven36x
in repository https://gitbox.apache.org/repos/asf/maven.git.


 discard aff4e34  Use Windows/Maven 3.6.x for build step
     new af66373  Use Windows/Maven 3.6.x for build step

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (aff4e34)
            \
             N -- N -- N   refs/heads/maven36x (af66373)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 Jenkinsfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


[maven] 01/01: Use Windows/Maven 3.6.x for build step

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch maven36x
in repository https://gitbox.apache.org/repos/asf/maven.git

commit af663739b8f1ebd6843763b4d4cdde09041e3d7e
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Wed Jan 23 21:00:20 2019 +0100

    Use Windows/Maven 3.6.x for build step
---
 Jenkinsfile | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 7c580cd..4104c2a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -19,12 +19,12 @@
 
 properties([buildDiscarder(logRotator(artifactNumToKeepStr: '5', numToKeepStr: env.BRANCH_NAME=='master'?'5':'1'))])
 
-def buildOs = 'linux'
+def buildOs = 'windows'
 def buildJdk = '8'
-def buildMvn = '3.5.4'
+def buildMvn = '3.6.0'
 def runITsOses = ['linux', 'windows']
 def runITsJdks = ['7', '8', '11']
-def runITsMvn = '3.5.4'
+def runITsMvn = '3.6.0'
 def runITscommand = "mvn clean install -Prun-its,embedded -B -U -V" // -DmavenDistro=... -Dmaven.test.failure.ignore=true
 def tests
 
@@ -51,7 +51,12 @@ node(jenkinsEnv.nodeSelection(osNode)) {
                 invokerPublisher(),
                 pipelineGraphPublisher()
             ]) {
-                sh "mvn clean verify -B -U -e -fae -V -Dmaven.test.failure.ignore=true"
+                String cmd = "mvn clean verify -B -U -e -fae -V -Dmaven.test.failure.ignore=true"
+                if (isUnix()) {
+                    sh "${cmd}"
+                } else {
+                    bat "${cmd}"
+                }
             }
             dir ('apache-maven/target') {
                 sh "mv apache-maven-*-bin.zip apache-maven-dist.zip"
@@ -117,6 +122,7 @@ parallel(runITsTasks)
 
 // JENKINS-34376 seems to make it hard to detect the aborted builds
 } catch (org.jenkinsci.plugins.workflow.steps.FlowInterruptedException e) {
+    echo "[FAILURE-002] FlowInterruptedException ${e}"
     // this ambiguous condition means a user probably aborted
     if (e.causes.size() == 0) {
         currentBuild.result = "ABORTED"
@@ -125,6 +131,7 @@ parallel(runITsTasks)
     }
     throw e
 } catch (hudson.AbortException e) {
+    echo "[FAILURE-003] AbortException ${e}"
     // this ambiguous condition means during a shell step, user probably aborted
     if (e.getMessage().contains('script returned exit code 143')) {
         currentBuild.result = "ABORTED"
@@ -133,9 +140,11 @@ parallel(runITsTasks)
     }
     throw e
 } catch (InterruptedException e) {
+    echo "[FAILURE-004] ${e}"
     currentBuild.result = "ABORTED"
     throw e
 } catch (Throwable e) {
+    echo "[FAILURE-001] ${e}"
     currentBuild.result = "FAILURE"
     throw e
 } finally {