Randall Becker
2018-11-15 15:51:52 UTC
Hi All,
I am trying to move over to Pipelines from Freestyle and am experiencing a
hang during the initial scan for branches at ls-remote in the Multibranch
Pipeline Scan. A few symptoms:
1. When using a freestyle project, with the same credentials and URL,
there is no issue.
2. When using ls-remote from the command line with the same credentials
and URL, there is no issue.
3. Git is available to Jenkins, but I tried providing a full path - no
change.
4. The project is minimal with no actual actions defined yet.
5. I am on Jenkins 2.138.2 and the latest plugins.
On interrupt, here is the stack trace:
[Thu Nov 15 15:35:46 GMT 2018] Starting branch indexing...
ERROR: [Thu Nov 15 15:40:45 GMT 2018] Could not update folder level actions from source b9692b8b-7465-43bf-b59c-0103ba223697
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:502)
at java.lang.UNIXProcess.waitFor(UNIXProcess.java:395)
at hudson.Proc$LocalProc.join(Proc.java:324)
at hudson.Proc.joinWithTimeout(Proc.java:170)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2012)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1735)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1640)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1631)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteSymbolicReferences(CliGitAPIImpl.java:2893)
at jenkins.plugins.git.AbstractGitSCMSource.retrieveActions(AbstractGitSCMSource.java:1093)
at jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:765)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:590)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:277)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1024)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
[Thu Nov 15 15:40:45 GMT 2018] Finished branch indexing. Indexing took 4 min 59 sec
Aborted
Finished: ABORTED
When running from the CLI:
# GIT_SSH_COMMAND="ssh -i .ssh/id_rsa" /usr/bin/git ls-remote --symref ***@bitbucket.org:XXXXXXXXXXXXX-my-private-url
Enter passphrase for key '.ssh/id_rsa':
ref: refs/heads/master HEAD
0c3b1737c3f43cbc1fa149d220d244d7c89c35b5 HEAD
3793b236a749f4a17f3e063b4a7581bcfb03b2a2 refs/heads/Pipeline_Implementation
0c3b1737c3f43cbc1fa149d220d244d7c89c35b5 refs/heads/development
0c3b1737c3f43cbc1fa149d220d244d7c89c35b5 refs/heads/master
0c3b1737c3f43cbc1fa149d220d244d7c89c35b5 refs/heads/production
96329f8a65c31728d1477a1ed36f3988b77cea08 refs/tags/v1.6.510
7abe49dce26caddf0fa7e052a19983802f27fa77 refs/tags/v1.6.510^{}
No idea how to resolve this, since outside the plugin, connectivity is
otherwise fine.
TIA,
Randall
I am trying to move over to Pipelines from Freestyle and am experiencing a
hang during the initial scan for branches at ls-remote in the Multibranch
Pipeline Scan. A few symptoms:
1. When using a freestyle project, with the same credentials and URL,
there is no issue.
2. When using ls-remote from the command line with the same credentials
and URL, there is no issue.
3. Git is available to Jenkins, but I tried providing a full path - no
change.
4. The project is minimal with no actual actions defined yet.
5. I am on Jenkins 2.138.2 and the latest plugins.
On interrupt, here is the stack trace:
[Thu Nov 15 15:35:46 GMT 2018] Starting branch indexing...
/usr/bin/git --version # timeout=10
using GIT_SSH to set credentials Randall's CredentialsERROR: [Thu Nov 15 15:40:45 GMT 2018] Could not update folder level actions from source b9692b8b-7465-43bf-b59c-0103ba223697
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:502)
at java.lang.UNIXProcess.waitFor(UNIXProcess.java:395)
at hudson.Proc$LocalProc.join(Proc.java:324)
at hudson.Proc.joinWithTimeout(Proc.java:170)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2012)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1735)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1640)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1631)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteSymbolicReferences(CliGitAPIImpl.java:2893)
at jenkins.plugins.git.AbstractGitSCMSource.retrieveActions(AbstractGitSCMSource.java:1093)
at jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:765)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:590)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:277)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1024)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
[Thu Nov 15 15:40:45 GMT 2018] Finished branch indexing. Indexing took 4 min 59 sec
Aborted
Finished: ABORTED
When running from the CLI:
# GIT_SSH_COMMAND="ssh -i .ssh/id_rsa" /usr/bin/git ls-remote --symref ***@bitbucket.org:XXXXXXXXXXXXX-my-private-url
Enter passphrase for key '.ssh/id_rsa':
ref: refs/heads/master HEAD
0c3b1737c3f43cbc1fa149d220d244d7c89c35b5 HEAD
3793b236a749f4a17f3e063b4a7581bcfb03b2a2 refs/heads/Pipeline_Implementation
0c3b1737c3f43cbc1fa149d220d244d7c89c35b5 refs/heads/development
0c3b1737c3f43cbc1fa149d220d244d7c89c35b5 refs/heads/master
0c3b1737c3f43cbc1fa149d220d244d7c89c35b5 refs/heads/production
96329f8a65c31728d1477a1ed36f3988b77cea08 refs/tags/v1.6.510
7abe49dce26caddf0fa7e052a19983802f27fa77 refs/tags/v1.6.510^{}
No idea how to resolve this, since outside the plugin, connectivity is
otherwise fine.
TIA,
Randall
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/674db529-2892-4b75-85ab-cd71d5e15894%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/674db529-2892-4b75-85ab-cd71d5e15894%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.