Hi all,
I'm trying to build a bndtools 3.4.0 project from jenkins (using gradle).
My problem is that the jenkins machine does not have access to outside world. it however has access to a corporate artifactory maven repository, which from its side can proxy maven central.
So, from jenkins, when the "gradle jar" command is run, then the biz.aQute.bnd.gradle-3.3.0.pom resource can't be downloaded, because by default the
https://repo1.maven.org/maven2 repo is used.
here is the debug output (using gradle jar -d):
--------------------------------------------------------------------------------------------------------------------
...
15:11:55.538 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency unspecified:unspecified:unspecified(classpath) -> biz.aQute.bnd:biz.aQute.bnd.gradle:3.3.0(classpath)
15:11:55.546 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Selecting new module version biz.aQute.bnd:biz.aQute.bnd.gradle:3.3.0
15:11:55.548 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Attempting to resolve component for biz.aQute.bnd:biz.aQute.bnd.gradle:3.3.0 using repositories [MavenRepo]
15:11:55.564 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Opening cache module-metadata.bin (/home/nxuser/.gradle/caches/modules-2/metadata-2.17/module-metadata.bin)
15:11:55.580 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Opening cache artifact-at-url.bin (/home/nxuser/.gradle/caches/modules-2/metadata-2.17/artifact-at-url.bin)
--------------------------------------------------------------------------------------------------------------------
so, since the jenkins host don't have access to the outside internet, then the HTTP GET is blocked and after a timeout, I'm getting this error:
--------------------------------------------------------------------------------------------------------------------
> Could not resolve all dependencies for configuration 'classpath'.
> Could not resolve biz.aQute.bnd:biz.aQute.bnd.gradle:3.3.0.
Required by:
unspecified:unspecified:unspecified
> Could not resolve biz.aQute.bnd:biz.aQute.bnd.gradle:3.3.0.
--------------------------------------------------------------------------------------------------------------------
- so, does anyone have a work around for this problem ?
- Since the jenkins host has access to an artifactory maven repository which can proxy to maven central, then is there a property somewhere which I could change in order to use
thank you for your help;
kind regards
Pierre