提交 3351cc63 编写于 作者: J Jesse Glick 提交者: GitHub

Merge pull request #2890 from jglick/mirror-INFRA-1176

[INFRA-1176] Using repo.azure.jenkins.io as a mirror for CI builds
...@@ -13,10 +13,7 @@ ...@@ -13,10 +13,7 @@
def runTests = true def runTests = true
def failFast = false def failFast = false
// Only keep the 10 most recent builds. properties([buildDiscarder(logRotator(numToKeepStr: '50', artifactNumToKeepStr: '20'))])
properties([[$class: 'jenkins.model.BuildDiscarderProperty', strategy: [$class: 'LogRotator',
numToKeepStr: '50',
artifactNumToKeepStr: '20']]])
// see https://github.com/jenkins-infra/documentation/blob/master/ci.adoc for information on what node types are available // see https://github.com/jenkins-infra/documentation/blob/master/ci.adoc for information on what node types are available
def buildTypes = ['Linux', 'Windows'] def buildTypes = ['Linux', 'Windows']
...@@ -42,7 +39,7 @@ for(i = 0; i < buildTypes.size(); i++) { ...@@ -42,7 +39,7 @@ for(i = 0; i < buildTypes.size(); i++) {
"MAVEN_OPTS=-Xmx1536m -Xms512m"]) { "MAVEN_OPTS=-Xmx1536m -Xms512m"]) {
// Actually run Maven! // Actually run Maven!
// -Dmaven.repo.local=… tells Maven to create a subdir in the temporary directory for the local Maven repository // -Dmaven.repo.local=… tells Maven to create a subdir in the temporary directory for the local Maven repository
def mvnCmd = "mvn -Pdebug -U clean install javadoc:javadoc ${runTests ? '-Dmaven.test.failure.ignore=true' : '-DskipTests'} -V -B -Dmaven.repo.local=${pwd tmp: true}/m2repo" def mvnCmd = "mvn -Pdebug -U clean install javadoc:javadoc ${runTests ? '-Dmaven.test.failure.ignore' : '-DskipTests'} -V -B -Dmaven.repo.local=${pwd tmp: true}/m2repo -s settings-azure.xml -e"
if(isUnix()) { if(isUnix()) {
sh mvnCmd sh mvnCmd
sh 'test `git status --short | tee /dev/stderr | wc --bytes` -eq 0' sh 'test `git status --short | tee /dev/stderr | wc --bytes` -eq 0'
......
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
<mirror>
<id>azure</id>
<url>https://repo.azure.jenkins.io/public/</url> <!-- INFRA-1176 -->
<mirrorOf>repo.jenkins-ci.org</mirrorOf>
</mirror>
</mirrors>
</settings>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册