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?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/87661a45-b15f-454f-a45c-709c23b1d6ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to