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 20:19:10 UTC

[maven-surefire] branch settings updated (329a8ca -> 4e22d45)

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 329a8ca  INFRA-16951 (HTTP 503 from repo.maven.apache.org)
     new 4e22d45  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   (329a8ca)
            \
             N -- N -- N   refs/heads/settings (4e22d45)

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 | 2 ++
 1 file changed, 2 insertions(+)


[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 4e22d4554a7e8e3d747399df4658463bf583edc4
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..dc98987 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 settingsXml = null
         def mvnLocalRepoDir = null
         if (isUnix()) {
             sh 'mkdir -p .m2'
-            mvnLocalRepoDir = "${pwd()}/.m2"
+            sh 'mkdir -p .m2/repository'
+            mvnLocalRepoDir = "${pwd()}/.m2/repository"
+            settingsXml = "${pwd()}/.m2/settings.xml"
+            sh "touch \"${settingsXml}\""
         } else {
             bat 'mkdir .m2'
-            mvnLocalRepoDir = "${pwd()}\\.m2"
+            bat 'mkdir .m2\\repository'
+            mvnLocalRepoDir = "${pwd()}\\.m2\\repository"
+            settingsXml = "${pwd()}\\.m2\\settings.xml"
+            bat "copy nul \"${settingsXml}\""
         }
 
         println "Maven Local Repository = ${mvnLocalRepoDir}."
         assert mvnLocalRepoDir != null : 'Local Maven Repository is undefined.'
+        writeFile(file: settingsXml, text: settingsXmlContent, encoding: 'UTF-8')
+        options += ['-s', settingsXml]
 
         stage("checkout ${stageKey}") {
             checkout scm