[JIRA] (JENKINS-61996) Gitea organization with SSH checkout has ssh:/// in address

2020-05-07 Thread mze...@fides.cz (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Zemek updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-61996  
 
 
  Gitea organization with SSH checkout has ssh:/// in address   
 

  
 
 
 
 

 
Change By: 
 Martin Zemek  
 
 
Attachment: 
 gitea.jar  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.205887.1587487414000.23052.1588832280165%40Atlassian.JIRA.


[JIRA] (JENKINS-61996) Gitea organization with SSH checkout has ssh:/// in address

2020-05-07 Thread 'mze...@fides.cz (JIRA)' via Jenkins Issues
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Zemek commented on  JENKINS-61996  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Gitea organization with SSH checkout has ssh:/// in address   
 

  
 
 
 
 

 
 I have created the pull request: https://github.com/jenkinsci/gitea-plugin/pull/23  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.205887.1587487414000.23063.1588834620218%40Atlassian.JIRA.


[JIRA] (JENKINS-61996) Gitea organization with SSH checkout has ssh:/// in address

2020-05-07 Thread 'mze...@fides.cz (JIRA)' via Jenkins Issues
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Zemek edited a comment on  JENKINS-61996  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Gitea organization with SSH checkout has ssh:/// in address   
 

  
 
 
 
 

 
 I have fixed this and will create a pull request during the weekend or later today.GiteaSCMBuilder.java: 177 167  {code:java}"ssh://git@" + sshUri.getHost() + (sshUri.getPort() != 22 ? ":" + sshUri.getPort() : ""  {code}URI.getPort returns -1 if there is no port specified. Adding a condition for this fixes this issue. {code:java}"ssh://git@" + sshUri.getHost() + (sshUri.getPort() != 22 && sshUri.getPort() != -1 ? ":" + sshUri.getPort() : ""  {code}Other option is to specify the 22 port.I have added a snapshot build (attached gitea.jar) if you want to try this.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.205887.1587487414000.23056.1588832700200%40Atlassian.JIRA.


[JIRA] (JENKINS-61996) Gitea organization with SSH checkout has ssh:/// in address

2020-05-07 Thread 'mze...@fides.cz (JIRA)' via Jenkins Issues
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Zemek commented on  JENKINS-61996  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Gitea organization with SSH checkout has ssh:/// in address   
 

  
 
 
 
 

 
 I have fixed this and will create a pull request during the weekend or later today. GiteaSCMBuilder.java:177   

 

"ssh://git@" + sshUri.getHost() + (sshUri.getPort() != 22 ? ":" + sshUri.getPort() : ""   

 URI.getPort returns -1 if there is no port specified. Adding a condition for this fixes this issue.   

 

"ssh://git@" + sshUri.getHost() + (sshUri.getPort() != 22 && sshUri.getPort() != -1 ? ":" + sshUri.getPort() : ""   

 Other option is to specify the 22 port. I have added a snapshot build (attached gitea.jar) if you want to try this.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit 

[JIRA] (JENKINS-61996) Gitea organization with SSH checkout has ssh:/// in address

2020-05-06 Thread 'reg...@blok-andersen.com (JIRA)' via Jenkins Issues
Title: Message Title


 
 
 
 

 
 
 

 
   
 Regner Blok-Andersen commented on  JENKINS-61996  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Gitea organization with SSH checkout has ssh:/// in address   
 

  
 
 
 
 

 
 We are also experiencing this issue. We are running Gitea 1.11.4 and the Gitea Jenkins plugin is version 1.2.0. We have tried rolling Gitea back to 1.10 as well and the same issue.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.205887.1587487414000.22828.1588792140133%40Atlassian.JIRA.


[JIRA] (JENKINS-61996) Gitea organization with SSH checkout has ssh:/// in address

2020-04-21 Thread mze...@fides.cz (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Zemek created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-61996  
 
 
  Gitea organization with SSH checkout has ssh:/// in address   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Attachments: 
 2020-04-21-log.txt, image-2020-04-21-18-40-08-741.png  
 
 
Components: 
 gitea-plugin  
 
 
Created: 
 2020-04-21 16:43  
 
 
Environment: 
 Jenkins 2.232  Credentials 2.3.7  Gitea Plugin 1.2.0  Gitea 1.11.4   
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Martin Zemek  
 

  
 
 
 
 

 
 Job fails to checkout over SSH. When created with Gitea organization and scanned for jenkinsfile.  The problem seems to be in ssh url: 

 

git.exe config remote.origin.url ssh:///g...@gitea.f.cz:-1/F/3.git # timeout=10
 

 notice the ssh:///git@   Because of this the "/git" user is used. The correct user should be "git"   When using the git plugin and Multibranch pipeline, checkout proceeds correctly.