0

With the GrabResolver in Groovy/Jenkins (http://docs.groovy-lang.org/2.4.10/html/api/groovy/lang/GrabResolver.html), you can add additional repositories to the resolution chain. I would like to remove all standard repositories (as MavenCentral), but I did not find a way.

The reason: Those repositories are not available inside our company, and contacting them until timeout wastes a huge amount of time in the process.

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
  • 1
    Is it possible by [altering the Ivy Resolver](http://docs.groovy-lang.org/latest/html/documentation/grape.html#Grape-CustomizeIvysettings) on each machine in your jenkins setup? – tim_yates Jan 26 '18 at 14:11
  • @tim_yates If I write such a settings file, MavenCentral is still contacted (jcenter is dropped, though). Can I tell Ivy _not_ to contact repo1.maven.... ? – J Fabian Meier Jan 26 '18 at 15:01
  • Your file looks like: https://stackoverflow.com/questions/15784791/how-to-exclude-local-maven-repository-when-installing-grape-dependencies yeah? – tim_yates Jan 26 '18 at 15:12
  • More or less. I just found out that I probably have to eliminate the line ` ` – J Fabian Meier Jan 26 '18 at 15:27
  • What about forwarding those domains to `127.0.0.1` via `/etc/hosts` so it can fail very fast? – Szymon Stepniak Jan 26 '18 at 17:47

0 Answers0