You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2018/09/20 21:08:16 UTC

[maven-surefire] branch settings updated (c0b1933 -> 1263c9d)

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

tibordigana pushed a change to branch settings
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git.


 discard c0b1933  INFRA-16951 (HTTP 503 from repo.maven.apache.org)
     new 1263c9d  INFRA-16951 (HTTP 503 from repo.maven.apache.org)

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   (c0b1933)
            \
             N -- N -- N   refs/heads/settings (1263c9d)

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-surefire] 01/01: INFRA-16951 (HTTP 503 from repo.maven.apache.org)

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

tibordigana pushed a commit to branch settings
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 1263c9def9f5084bef259fe5051b4050e70d5b8e
Author: Tibor17 <ti...@apache.org>
AuthorDate: Thu Sep 20 21:50:25 2018 +0200

    INFRA-16951 (HTTP 503 from repo.maven.apache.org)
---
 Jenkinsfile | 25 +++++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 9de3f2f..66d45d4 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -122,17 +122,38 @@ timeout(time: 12, unit: 'HOURS') {
 def buildProcess(String stageKey, String jdkName, String jdkTestName, String mvnName, goals, options, mavenOpts, boolean makeReports) {
     cleanWs()
     try {
+        def settingsXmlContent = '''
+        <settings>
+            <mirrors>
+                <mirror>
+                    <id>nexus</id>
+                    <mirrorOf>*</mirrorOf>
+                    <name>Sonatype Nexus</name>
+                    <url>https://repository.apache.org/content/groups/public</url>
+                </mirror>
+            </mirrors>
+        </settings>'''
+
         def mvnLocalRepoDir = null
         if (isUnix()) {
             sh 'mkdir -p .m2'
-            mvnLocalRepoDir = "${pwd()}/.m2"
+            sh 'mkdir -p .m2/repository'
+            mvnLocalRepoDir = "${pwd()}/.m2/repository"
+            sh 'touch .m2/settings.xml'
+            sh 'echo \"<settings/>\" > .m2/settings.xml'
+            //writeFile(file: '.m2/settings.xml', text: settingsXmlContent, encoding: 'UTF-8')
         } else {
             bat 'mkdir .m2'
-            mvnLocalRepoDir = "${pwd()}\\.m2"
+            bat 'mkdir .m2\\repository'
+            mvnLocalRepoDir = "${pwd()}\\.m2\\repository"
+            bat 'copy nul .m2\\settings.xml'
+            bat 'echo \"<settings/>\" > .m2\\settings.xml'
+            //writeFile(file: '.m2\\settings.xml', text: settingsXmlContent, encoding: 'UTF-8')
         }
 
         println "Maven Local Repository = ${mvnLocalRepoDir}."
         assert mvnLocalRepoDir != null : 'Local Maven Repository is undefined.'
+        options += ['-s', '.m2/settings.xml']
 
         stage("checkout ${stageKey}") {
             checkout scm