Skip to content

mvn deploy via ssh

Summary

Object Teams has some plain maven artifacts which traditionally have been uploaded to our download area. This worked fine in times when download was mounted on jenkins. Trying to switch to ssh I'm stuck.

Steps to reproduce

Run https://ci.eclipse.org/objectteams/job/release-for-maven/ :)

What is the current bug behavior?

Upload fails.

Relevant logs and/or screenshots

As seen in https://ci.eclipse.org/objectteams/job/release-for-maven/31/console upload doesn't work, error is

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.1.0:deploy (default-deploy) on project objectteams-parent-pom: Failed to deploy artifacts/metadata: Cannot access ssh://genie.objectteams@projects-storage.eclipse.org/home/data/httpd/download.eclipse.org/objectteams/maven/3/repository with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access ssh://genie.objectteams@projects-storage.eclipse.org/home/data/httpd/download.eclipse.org/objectteams/maven/3/repository using the registered transporter factories: HttpTransporterFactory, FileTransporterFactory, WagonTransporterFactory -> [Help 1]

Relevant files are below https://git.eclipse.org/c/objectteams/org.eclipse.objectteams.git/tree/maven/infrastructure

The parent-pom/pom.xml, where the first error occurs, has this below <build>:

		<extensions>
			<extension>
				<groupId>org.apache.maven.wagon</groupId>
				<artifactId>wagon-ssh-external</artifactId>
				<version>3.3.4</version>
			</extension>
		</extensions>

The jenkins configuration has the ssh agent enabled with both available secrets.

I tried to find more hints on https://wiki.eclipse.org/Jenkins#Deployment_with_Maven but I don't see what I'm doing wrong.

In deviation from that wiki entry, I omitted the second colon in the url, after trying with it didn't work, and it looked wrong to me.

Priority

  • Urgent
  • High
  • Medium
  • Low

Severity

  • Blocker
  • Major
  • Normal
  • Low

Impact

Is it blocking a release?

yes, regarding the maven side of it.