Skip to content

Commit 54649fa

Browse files
authored
Merge pull request #434 from Vlatombe/npm-repo
Move node/npm download root to properties to allow easy override
2 parents 5494d59 + bf1c527 commit 54649fa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pom.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
<npm.version>2.13.1</npm.version>
7979
<yarn.version>0.23.0</yarn.version>
8080
<frontend-version>1.12.0</frontend-version>
81+
<nodeDownloadRoot>https://repo.jenkins-ci.org/nodejs-dist/</nodeDownloadRoot>
82+
<npmDownloadRoot>https://repo.jenkins-ci.org/npm-dist/</npmDownloadRoot>
8183
<skip.node.tests /> <!-- changed by -DskipTests, if specified - see profile -->
8284
<skip.node.lint /> <!-- changed by -DskipLint, if specified - see profile -->
8385
<npm.loglevel /> <!-- may use e.g. -\-silent (without backslash) -->
@@ -1115,8 +1117,8 @@
11151117
<configuration>
11161118
<nodeVersion>v${node.version}</nodeVersion>
11171119
<npmVersion>${npm.version}</npmVersion>
1118-
<nodeDownloadRoot>https://repo.jenkins-ci.org/nodejs-dist/</nodeDownloadRoot>
1119-
<npmDownloadRoot>https://repo.jenkins-ci.org/npm-dist/</npmDownloadRoot>
1120+
<nodeDownloadRoot>${nodeDownloadRoot}</nodeDownloadRoot>
1121+
<npmDownloadRoot>${npmDownloadRoot}</npmDownloadRoot>
11201122
</configuration>
11211123
</execution>
11221124

@@ -1187,7 +1189,7 @@
11871189
<configuration>
11881190
<nodeVersion>v${node.version}</nodeVersion>
11891191
<yarnVersion>v${yarn.version}</yarnVersion>
1190-
<nodeDownloadRoot>https://repo.jenkins-ci.org/nodejs-dist/</nodeDownloadRoot>
1192+
<nodeDownloadRoot>${nodeDownloadRoot}</nodeDownloadRoot>
11911193
<!-- tried to create a mirror for yarnDownloadRoot but it did not work -->
11921194
</configuration>
11931195
</execution>

0 commit comments

Comments
 (0)