[JIRA] (JENKINS-49768) GITEA Organization Job. Could not fetch branches from source when we use Gitea SSH built-in server

8 views
Skip to first unread message

olecsys@gmail.com (JIRA)

unread,
Feb 27, 2018, 7:23:03 AM2/27/18
to jenkinsc...@googlegroups.com
Aleksandr Gamoskin created an issue
 
Jenkins / Bug JENKINS-49768
GITEA Organization Job. Could not fetch branches from source when we use Gitea SSH built-in server
Issue Type: Bug Bug
Assignee: Stephen Connolly
Components: gitea-plugin
Created: 2018-02-27 12:22
Environment: OS Windows Server 2012, Gitea 1.3.3 windows 4.0 amd64, Gitea Jenkins Plugin 1.0.4, NGINX as reverse proxy
Priority: Critical Critical
Reporter: Aleksandr Gamoskin

I try to use Gitea Jenkins Plugin with our Gitea Git server but it's not working when I turn off git http protocol via DISABLE_HTTP_GIT option and use SSH as git protocol(via Gitea built-in SSH server). So it seems that when Gitea Plugin tries to generate git repo uri and it's failed.

I send you Jenkins Job logs also:

Branch indexing
[Вт фев 27 15:41:06 SAMT 2018] Starting branch indexing...
Looking up repository ag/autoloader

  Checking branches...

    Checking branch master
      ‘Jenkinsfile’ found
    Met criteria
ERROR: [Вт фев 27 15:41:07 SAMT 2018] Could not fetch branches from source org.jenkinsci.plugin.gitea.GiteaSCMNavigator::https://git.iv.integra-s.com::ag::autoloader
java.net.URISyntaxException: Illegal character in scheme name at index 3: g...@iv.integra-s.com:ag/autoloader.git
	at java.net.URI$Parser.fail(Unknown Source)
	at java.net.URI$Parser.checkChars(Unknown Source)
	at java.net.URI$Parser.parse(Unknown Source)
	at java.net.URI.<init>(Unknown Source)
Caused: java.lang.IllegalArgumentException: Illegal character in scheme name at index 3: g...@iv.integra-s.com:ag/autoloader.git
	at java.net.URI.create(Unknown Source)
	at org.jenkinsci.plugin.gitea.GiteaSCMBuilder.checkoutUriTemplate(GiteaSCMBuilder.java:155)
	at org.jenkinsci.plugin.gitea.GiteaSCMBuilder.checkoutUriTemplate(GiteaSCMBuilder.java:212)
	at org.jenkinsci.plugin.gitea.GiteaSCMBuilder.withGiteaRemote(GiteaSCMBuilder.java:225)
	at org.jenkinsci.plugin.gitea.GiteaSCMBuilder.build(GiteaSCMBuilder.java:249)
	at org.jenkinsci.plugin.gitea.GiteaSCMSource.build(GiteaSCMSource.java:471)
	at jenkins.scm.api.SCMSource.build(SCMSource.java:833)
	at jenkins.branch.MultiBranchProject.newBranch(MultiBranchProject.java:533)
	at jenkins.branch.MultiBranchProject.access$1000(MultiBranchProject.java:124)
	at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:1974)
	at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:359)
	at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:288)
	at org.jenkinsci.plugin.gitea.GiteaSCMSource.retrieve(GiteaSCMSource.java:253)
	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)
[Вт фев 27 15:41:07 SAMT 2018] Finished branch indexing. Indexing took 1,6 секунды
FATAL: Failed to recompute children of Гамоскин Александр » autoloader
java.lang.IllegalArgumentException: Illegal character in scheme name at index 3: g...@iv.integra-s.com:ag/autoloader.git
	at java.net.URI.create(Unknown Source)
	at org.jenkinsci.plugin.gitea.GiteaSCMBuilder.checkoutUriTemplate(GiteaSCMBuilder.java:155)
	at org.jenkinsci.plugin.gitea.GiteaSCMBuilder.checkoutUriTemplate(GiteaSCMBuilder.java:212)
	at org.jenkinsci.plugin.gitea.GiteaSCMBuilder.withGiteaRemote(GiteaSCMBuilder.java:225)
	at org.jenkinsci.plugin.gitea.GiteaSCMBuilder.build(GiteaSCMBuilder.java:249)
	at org.jenkinsci.plugin.gitea.GiteaSCMSource.build(GiteaSCMSource.java:471)
	at jenkins.scm.api.SCMSource.build(SCMSource.java:833)
	at jenkins.branch.MultiBranchProject.newBranch(MultiBranchProject.java:533)
	at jenkins.branch.MultiBranchProject.access$1000(MultiBranchProject.java:124)
	at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:1974)
	at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:359)
	at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:288)
	at org.jenkinsci.plugin.gitea.GiteaSCMSource.retrieve(GiteaSCMSource.java:253)
	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)
Caused by: java.net.URISyntaxException: Illegal character in scheme name at index 3: g...@iv.integra-s.com:ag/autoloader.git
	at java.net.URI$Parser.fail(Unknown Source)
	at java.net.URI$Parser.checkChars(Unknown Source)
	at java.net.URI$Parser.parse(Unknown Source)
	at java.net.URI.<init>(Unknown Source)
	... 21 more
Finished: FAILURE

I could test your fix if you could fix problem and build hpi file. I look forward for problem solution.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

olecsys@gmail.com (JIRA)

unread,
Feb 27, 2018, 11:42:01 PM2/27/18
to jenkinsc...@googlegroups.com

olecsys@gmail.com (JIRA)

unread,
Mar 13, 2018, 1:09:02 AM3/13/18
to jenkinsc...@googlegroups.com
Aleksandr Gamoskin assigned an issue to Stephen Connolly

scm_issue_link@java.net (JIRA)

unread,
Mar 14, 2018, 5:37:04 AM3/14/18
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-49768
 
Re: GITEA Organization Job. Could not fetch branches from source when we use Gitea SSH built-in server

Code changed in jenkins
User: Stephen Connolly
Path:
CHANGES.md
src/main/java/org/jenkinsci/plugin/gitea/GiteaSCMBuilder.java
http://jenkins-ci.org/commit/gitea-plugin/bddf7b2925dfd44aaecc53b2f3e20a6e6c395463
Log:
[FIXED JENKINS-49768] Detect scp style urls and translate to ssh style

scm_issue_link@java.net (JIRA)

unread,
Mar 14, 2018, 5:37:04 AM3/14/18
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages