Note that there are some explanatory texts on larger screens.

plurals
  1. POHow does Jenkins lookup for maven repositories in Cloudbees?
    primarykey
    data
    text
    <p>I am facing regular issue with the way Cloudbees Jenkins lookup for maven repositories. Our project is still not mature so we use the private repository and an external SVN on Assembla. Usually jenkins would look into the public Cloudbees and our private repository to resolve dependency. But sometimes it stops in the public repo and fail to transfer the artifacts.</p> <p>Edit: the triggered job projectA use a profile. This profile adds custom properties to complete the build.I have put them in a private settings.xml following this doc.</p> <p><a href="http://wiki.cloudbees.com/bin/view/DEV/Sharing+Files+with+Build+Executors" rel="nofollow">http://wiki.cloudbees.com/bin/view/DEV/Sharing+Files+with+Build+Executors</a></p> <p>so it seems this is deactivating cloudbees default profile.</p> <p>One example with this job not finding a parent POM. Jenkins is able to deploy the parent POM to the private repository. It launches the second job (projectA)</p> <pre><code>Uploaded: https://repository-accountid.forge.cloudbees.com/snapshot/com/company/projectA-pom/1.2-SNAPSHOT/projectA-pom-1.2-20130416.155847-5.pom (5 KB at 79.0 KB/sec) Downloading: https://repository-accountid.forge.cloudbees.com/snapshot/com/company/projectA-pom/maven-metadata.xml Downloaded: https://repository-accountid.forge.cloudbees.com/snapshot/com/company/projectA-pom/maven-metadata.xml (285 B at 7.0 KB/sec) Uploading: https://repository-accountid.forge.cloudbees.com/snapshot/com/company/projectA-pom/1.2-SNAPSHOT/maven-metadata.xml Uploaded: https://repository-accountid.forge.cloudbees.com/snapshot/com/company/projectA-pom/1.2-SNAPSHOT/maven-metadata.xml (600 B at 9.2 KB/sec) Uploading: https://repository-accountid.forge.cloudbees.com/snapshot/com/company/projectA-pom/maven-metadata.xml Uploaded: https://repository-accountid.forge.cloudbees.com/snapshot/com/company/projectA-pom/maven-metadata.xml (285 B at 5.5 KB/sec) [INFO] Deployment done in 0.62 sec Triggering a new build of projectA #12 </code></pre> <p>The second build is supposed to use the new POM parent (or at least on already available). It searches in the public repository and stops there. Maybe it's a temporary problem with the Maven plugin (either Maven 2 jenkins plugin or Cloudbees maven plugin)</p> <pre><code>no change for https://subversion.assembla.com/svn/accountid.repo/projectA/trunk since the previous build Parsing POMs Failed to transfer Could not find metadata com.company:projectA-pom:1.2-SNAPSHOT/maven-metadata.xml in cloudbees-nexus-repository (http://repo.cloudbees.com/content/groups/public) Failed to transfer Could not find artifact com.company:projectA-pom:pom:1.2-SNAPSHOT in cloudbees-nexus-repository (http://repo.cloudbees.com/content/groups/public) ERROR: Failed to parse POMs hudson.util.IOException2: remote file operation failed: /scratch/jenkins/workspace/projectA at hudson.remoting.Channel@2b842bd6:s-38976f5e at hudson.FilePath.act(FilePath.java:877) at hudson.FilePath.act(FilePath.java:863) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:910) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:654) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510) at hudson.model.Run.execute(Run.java:1505) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: hudson.remoting.ProxyException: hudson.maven.MavenModuleSetBuild$MavenExecutionException: org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM: Could not find artifact com.company:projectA-pom:pom:1.2-SNAPSHOT in cloudbees-nexus-repository (http://repo.cloudbees.com/content/groups/public) and 'parent.relativePath' points at wrong local POM @ line 14, column 10 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload