Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 535909

Summary: Upload problems to OSSRH
Product: Community Reporter: Karsten Thoms <karsten.thoms>
Component: CI-JenkinsAssignee: CI Admin Inbox <ci.admin-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: frederic.gurr, mikael.barbero, webmaster
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Karsten Thoms CLA 2018-06-14 10:41:47 EDT
The EMF project is trying to upload release artifacts to OSSRH with the maven-gpg-plugin:1.6:sign-and-deploy-file goal. The connection is established but uploading happens at only at some bytes/s. This takes forever, causes read time outs, and fails.

See build log for details:
https://ci.eclipse.org/emf/job/publish-maven/23/console
Comment 1 Mikaƫl Barbero CLA 2018-06-15 10:55:33 EDT
The best practice to deploy artifacts to OSSRH is to use org.sonatype.plugins:nexus-staging-maven-plugin (see https://central.sonatype.org/pages/apache-maven.html). Please, give it a try and report if you still face issues.
Comment 2 Karsten Thoms CLA 2018-06-18 03:26:51 EDT
The nexus-staging-plugin does not help in this context. The deployment of the EMF artifacts is using an *existing* p2 repo, and the POMs are created with the CBI aggregator. It does not allow to extend the POM by additional plugins (or I do not know how). The challenge is to make the contents of the Maven repo produced by CBI available to Maven Central. This requires to use a command line call to deploy single artifacts.

However, the actual problem seems to be solved. I tried the build again and the upload speed was now OK and the build was successful. There was some networking issue. Since it is working now, I'll close this ticket.
Comment 3 Karsten Thoms CLA 2018-07-10 06:50:58 EDT
I'm again experiencing severe problems. Upload takes ages. This used to work in the meantime, so I have to assume some infrastructure problem. Could you please take a look?

https://ci.eclipse.org/emf/job/publish-maven/67/console
Comment 4 Frederic Gurr CLA 2018-07-10 14:01:06 EDT
Can you raise a ticket on the OSSRH JIRA about this (and link to it here)? We are not aware of any issues on our side at the moment.
Comment 5 Karsten Thoms CLA 2018-07-12 05:54:47 EDT
Will do the next time I face that issue.