Change By: Aidan Carter (28/May/13 3:46 AM)
Description: I've been trying all week to get this Jenkins repository working, but I cannot get past this error in my build:
{code}[DEBUG] Connecting to repository: 'jenkins-upstream' with url: 'http://opss-jenkins.sensis.com.au/jenkins/view/zSpikes/job/PL10_Unit_AC/15/maven-repository/repository/'.
Downloading: http://opss-jenkins.sensis.com.au/jenkins/view/zSpikes/job/PL10_Unit_AC/15/maven-repository/repository//au/com/sensis/opss/opss-common-build-resources/1.0.2-SNAPSHOT/opss-common-build-resources-1.0.2-20130521.060427-24.jar
[DEBUG] Unable to locate resource in repository{code}

After investigation, I found that version 1.0.2-20130521.060427-24 exists on our nexus server, but does not exist in the jenkins repository. The jenkins repository does contain a build of 1.0.2-SNAPSHOT (v1.0.2-20130527.164756-15). 

So it appears that maven is resolving the version it needs from nexus, then trying to retrieve it from jenkins repository, which fails.

It is worth noting that in this example, the snapshot version published in jenkins is more recent than the one in nexus. In our system, we *always* want to use the snapshot version from jenkins (if present), and fall back to nexus if it does not exist.

I have experimented with many different configurations in the settings files around ordering the repository entries (and other tricks), but I cannot find a way past this problem.

I believe the cause may be the metadata that is being written to the jenkins repository. I have attached a sample to compare between jenkins and nexus for the same artifact. Note that the
 {code} <snapshot> {code}  element is entirely missing in the jenkins version - this may be the root cause of the issue?
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to