I assume from your description that you're using a private key with a passphrase as the credential in the Pipeline job definition. I'm also assuming it is a simple Pipeline job rather than a multibranch Pipeline.
Does the same behavior happen if you use a private key which does not have a passphrase? Does the same behavior happen if you use a multibranch Pipeline job rather than a simple Pipeline job? Mark Waite On Thu, Nov 15, 2018 at 9:18 AM Randall Becker <[email protected]> wrote: > The original post showed the entire list of refs. No issue requiring a > timeout above 3 seconds actually. 10 minutes will make no difference. When > run from Jenkins from a shell command, the result comes back in seconds. I > don't think this is a performance issue. It is seeming to be a problem in > the plugin. > > On Thursday, November 15, 2018 at 11:07:20 AM UTC-5, Ivan Fernandez Calvo > wrote: >> >> also, check the value of the TIMEOUT property, execute this code in the >> Jenkins script console, the default value is 10 minutes, you can increase >> it by setting the property in your command line >> >> System.getProperty(org.jenkinsci.plugins.gitclient.Git.class.getName() + >> ".timeOut") >> >> If you have tons of tags on your repos try to not discover tags. >> >> El jueves, 15 de noviembre de 2018, 16:51:53 (UTC+1), Randall Becker >> escribió: >>> >>> 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... >>> > /usr/bin/git --version # timeout=10 >>> using GIT_SSH to set credentials Randall's Credentials >>> > /usr/bin/git ls-remote --symref >>> [email protected]:XXXXXXXXXXXXX-my-private-url # timeout=10 >>> >>> 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 >>> [email protected]: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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/28c82b76-6b89-4347-8190-71f8dceb349b%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/28c82b76-6b89-4347-8190-71f8dceb349b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Thanks! Mark Waite -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtG5Pt8Z_ER%3DY1wqHNhGPKeSajx0Ns_iyXN2ECW2pbnw-Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
