Problem with Repository Connector Plugin example?

267 views
Skip to first unread message

ke...@securemailbox.com

unread,
Dec 5, 2016, 3:34:45 AM12/5/16
to Jenkins Users
I have tried to use the repository connector plugin to fetch a an artifact using the artifact resolver with a version specified with the artifact parameter selected as a build parameter.
However it doesn't seem to resolve the version parameter properly?

I have in fact configured the same example setup as in the documentation sample (from https://wiki.jenkins-ci.org/display/JENKINS/Repository+Connector+Plugin)
to fetch a selected version of commons-collections.

The versions shows up properly when I do "Build with parameters" but then the artifact resolver just gives an error:
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/Deploy platform/workspace
INFO: define repo: [Repository id=central, type=default, url=http://repo1.maven.org/maven2, isRepositoryManager=false]
failed to resolve dependency for [Artifact commons-collections:commons-collections:jar::${commons-collections.commons-collections}]
org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact commons-collections:commons-collections:jar:${commons-collections.commons-collections} in central (http://repo1.maven.org/maven2)
	at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
	at ...
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact commons-collections:commons-collections:jar:${commons-collections.commons-collections} in central (http://repo1.maven.org/maven2)
	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:537)
...
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact commons-collections:commons-collections:jar:${commons-collections.commons-collections} in ...

I tried a lot of different settings and also searched for similar problems, but didn't find anything so asking here now.

It almost seems like it does not resolve this parameter properly or it isn't set properly by the artifact parameter selection?
Reply all
Reply to author
Forward
0 new messages