NO-JIRA: use the google mirror for maven central to spread load and help reduce sporadic CI failures

This commit is contained in:
Robbie Gemmell 2021-08-17 17:56:41 +01:00
parent cc1b7f7f5a
commit c300d58baa
3 changed files with 60 additions and 7 deletions

53
.github/maven-settings.xml vendored Normal file
View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<settings>
<profiles>
<profile>
<id>google-mirror</id>
<repositories>
<repository>
<id>google-maven-central</id>
<name>GCS Maven Central mirror</name>
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>google-maven-central</id>
<name>GCS Maven Central mirror</name>
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>google-mirror</activeProfile>
</activeProfiles>
</settings>

View File

@ -32,26 +32,26 @@ jobs:
# By setting anything to org.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED we are disabling libaio loading on the testsuite # By setting anything to org.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED we are disabling libaio loading on the testsuite
- name: Build Main - name: Build Main
run: | run: |
mvn -Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull -Derrorprone -Pfast-tests -Pextra-tests -Ptests-CI -Pjmh install mvn -s .github/maven-settings.xml -Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull -Derrorprone -Pfast-tests -Pextra-tests -Ptests-CI -Pjmh install
- name: Build Examples (JDK8 / -Prelease) - name: Build Examples (JDK8 / -Prelease)
if: matrix.java == '8' if: matrix.java == '8'
run: | run: |
cd examples cd examples
mvn install -Prelease mvn -s ../.github/maven-settings.xml install -Prelease
- name: Build Examples (JDK 11+ / -Pexamples,noRun) - name: Build Examples (JDK 11+ / -Pexamples,noRun)
if: matrix.java != '8' if: matrix.java != '8'
run: | run: |
cd examples cd examples
mvn install -Pexamples,noRun mvn -s ../.github/maven-settings.xml install -Pexamples,noRun
- name: Javadoc Check (JDK8 / -Prelease) - name: Javadoc Check (JDK8 / -Prelease)
if: matrix.java == '8' if: matrix.java == '8'
run: | run: |
mvn javadoc:javadoc -Prelease mvn -s .github/maven-settings.xml javadoc:javadoc -Prelease
- name: Javadoc Check (JDK 11+) - name: Javadoc Check (JDK 11+)
if: matrix.java != '8' if: matrix.java != '8'
run: | run: |
mvn javadoc:javadoc mvn -s .github/maven-settings.xml javadoc:javadoc

View File

@ -24,9 +24,9 @@ before_install:
# By setting anything to org.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED we are disabling libaio loading on the testsuite # By setting anything to org.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED we are disabling libaio loading on the testsuite
script: script:
- set -e - set -e
- mvn -ntp -Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull -Dmaven.test.redirectTestOutputToFile=true -Derrorprone -Pfast-tests -Pextra-tests -Ptests-CI -Pjmh -B install - mvn -s .github/maven-settings.xml -ntp -Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull -Dmaven.test.redirectTestOutputToFile=true -Derrorprone -Pfast-tests -Pextra-tests -Ptests-CI -Pjmh -B install
- cd examples - cd examples
- mvn install -P${EXAMPLES_PROFILE} -B -q - mvn -s ../.github/maven-settings.xml install -P${EXAMPLES_PROFILE} -B -q
cache: cache:
directories: directories: