[JIRA] (JENKINS-50586) SSH support

58 views
Skip to first unread message

john.viklund@effnet.com (JIRA)

unread,
Apr 5, 2018, 3:37:02 AM4/5/18
to jenkinsc...@googlegroups.com
John V created an issue
 
Jenkins / New Feature JENKINS-50586
SSH support
Issue Type: New Feature New Feature
Assignee: lucamilanesio
Components: gerrit-code-review-plugin
Created: 2018-04-05 07:36
Environment: Gerrit 2.15
Priority: Major Major
Reporter: John V

Is SSH supported? I get the following exception when using ssh:

org.apache.http.conn.UnsupportedSchemeException: ssh protocol is not supported
	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:109)
	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359)
	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)
	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
	at com.urswolfer.gerrit.client.rest.http.HttpRequestExecutor.execute(HttpRequestExecutor.java:34)
	at com.urswolfer.gerrit.client.rest.http.GerritRestClient.tryGerritHttpAuth(GerritRestClient.java:306)
	at com.urswolfer.gerrit.client.rest.http.GerritRestClient.updateGerritAuth(GerritRestClient.java:261)
	at com.urswolfer.gerrit.client.rest.http.GerritRestClient.updateGerritAuthWhenRequired(GerritRestClient.java:255)
	at com.urswolfer.gerrit.client.rest.http.GerritRestClient.request(GerritRestClient.java:182)
	at com.urswolfer.gerrit.client.rest.http.GerritRestClient.requestRest(GerritRestClient.java:163)
	at com.urswolfer.gerrit.client.rest.http.GerritRestClient.requestRest(GerritRestClient.java:155)
	at com.urswolfer.gerrit.client.rest.http.GerritRestClient.requestJson(GerritRestClient.java:132)
Caused: com.google.gerrit.extensions.restapi.RestApiException: Request failed.
	at com.urswolfer.gerrit.client.rest.http.GerritRestClient.requestJson(GerritRestClient.java:147)
	at com.urswolfer.gerrit.client.rest.http.GerritRestClient.getRequest(GerritRestClient.java:101)
	at com.urswolfer.gerrit.client.rest.http.changes.ChangesRestClient.get(ChangesRestClient.java:113)
	at com.urswolfer.gerrit.client.rest.http.changes.ChangesRestClient.access$000(ChangesRestClient.java:35)
	at com.urswolfer.gerrit.client.rest.http.changes.ChangesRestClient$1.get(ChangesRestClient.java:78)
	at jenkins.plugins.gerrit.AbstractGerritSCMSource.getOpenChanges(AbstractGerritSCMSource.java:175)
	at jenkins.plugins.gerrit.AbstractGerritSCMSource.access$100(AbstractGerritSCMSource.java:59)
	at jenkins.plugins.gerrit.AbstractGerritSCMSource$1.discoverBranches(AbstractGerritSCMSource.java:124)
Caused: java.io.IOException
	at jenkins.plugins.gerrit.AbstractGerritSCMSource$1.discoverBranches(AbstractGerritSCMSource.java:156)
	at jenkins.plugins.gerrit.AbstractGerritSCMSource$1.run(AbstractGerritSCMSource.java:98)
	at jenkins.plugins.gerrit.AbstractGerritSCMSource$1.run(AbstractGerritSCMSource.java:82)
	at jenkins.plugins.gerrit.AbstractGerritSCMSource.doRetrieve(AbstractGerritSCMSource.java:497)
	at jenkins.plugins.gerrit.AbstractGerritSCMSource.retrieve(AbstractGerritSCMSource.java:81)
	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:355)
	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:265)
	at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:631)
	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276)
	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
	at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1022)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

lucamilanesio@java.net (JIRA)

unread,
Oct 14, 2018, 11:03:02 AM10/14/18
to jenkinsc...@googlegroups.com
lucamilanesio commented on New Feature JENKINS-50586
 
Re: SSH support

SSH isn't supported at the moment. I am planning to work on it in the next few days and release it.

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

alon.barlev@gmail.com (JIRA)

unread,
Oct 24, 2018, 12:03:02 PM10/24/18
to jenkinsc...@googlegroups.com
Alon Bar-Lev commented on New Feature JENKINS-50586
 
Re: SSH support

This is important for proper authentication, the http is weak and problematic.

Thanks!

erikhakan@gmail.com (JIRA)

unread,
Nov 29, 2018, 6:44:02 AM11/29/18
to jenkinsc...@googlegroups.com
Erik Håkansson commented on New Feature JENKINS-50586
 
Re: SSH support

lucamilanesio, you said on GitHub before you removed issues there that you were planning on releasing a guide on how to use git/ssh with this plugin.

I wrote on GerritHub but didn't get any answer from you there, so I'm trying here. 

I've managed to nag the powers that be so I have a REST password now, but checkout still needs to happen over SSH. How do I solve that?

Thanks!

igwe.kalu@live.com (JIRA)

unread,
Jan 3, 2019, 4:48:03 AM1/3/19
to jenkinsc...@googlegroups.com
Igwe Kalu commented on New Feature JENKINS-50586
 
Re: SSH support

I observed exact same issue when executing "Scan Multibranch Pipeline Now". This strongly diminishes the value of the gerrit-code-review-plugin.

igwe.kalu@live.com (JIRA)

unread,
Jan 3, 2019, 4:49:02 AM1/3/19
to jenkinsc...@googlegroups.com
Igwe Kalu updated an issue
Change By: Igwe Kalu
Priority: Major Critical

galarragas@gmail.com (JIRA)

unread,
Jan 30, 2019, 11:22:03 AM1/30/19
to jenkinsc...@googlegroups.com
Stefano Galarraga assigned an issue to Stefano Galarraga
Change By: Stefano Galarraga
Assignee: lucamilanesio Stefano Galarraga

galarragas@gmail.com (JIRA)

unread,
Jan 30, 2019, 11:24:03 AM1/30/19
to jenkinsc...@googlegroups.com
Stefano Galarraga started work on New Feature JENKINS-50586
 
Change By: Stefano Galarraga
Status: Open In Progress

galarragas@gmail.com (JIRA)

unread,
Feb 4, 2019, 4:45:02 AM2/4/19
to jenkinsc...@googlegroups.com
Stefano Galarraga stopped work on New Feature JENKINS-50586
 
Change By: Stefano Galarraga
Status: In Progress Open

tamas.d@icloud.com (JIRA)

unread,
Sep 17, 2019, 9:39:04 AM9/17/19
to jenkinsc...@googlegroups.com
Tamas Demeter-Haludka commented on New Feature JENKINS-50586
 
Re: SSH support

Any updates on this issue? In my case, Gerrit and the Jenkins master is on the same server, but the job has to run on a worker instance. If I set the url to ssh, the worker can clone the repo, but the pipeline scan fails, if I set the url to http, the scan works, but the worker can't clone the repo. Everything on that server is behind a strong SSO, and it is not really possible to let Gerrit out to the internet on the HTTP port.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages