The Multibranch Pipeline Plugin using JGit ends up incompatible. > /usr/local/bin/jgit --version # timeout=10 > /usr/local/bin/jgit ls-remote --symref > [email protected]:nonstop-git/nsgit.git # timeout=10
ERROR: [Wed Apr 24 18:23:01 UTC 2019] Could not update folder level actions from source 0819144a... hudson.plugins.git.GitException: Command "/usr/local/bin/jgit ls-remote --symref [email protected]:group/repo.git" returned status code 1: stdout: stderr: fatal: "--symref" is not a valid option Looks like JGit (5.3.0 anyway) is no longer an option for polling. I'm on Git Plugin 3.9.3. setsid made no difference. On Wednesday, April 24, 2019 at 2:24:00 PM UTC-4, Mark Waite wrote: > > > > On Wed, Apr 24, 2019 at 12:10 PM Randall Becker wrote: > >> I'll bite. How can I use JGit instead of git in Jenkins? I thought it was >> hard-burnt into the Git Plugin. >> >> > In the "Global Tools Configuration" page of "Manage Jenkins", use the > "Git" button and the "Add" button under it to add "jgit" as an > implementation. Once you've done that, then jobs will have an additional > option to select which git implementation they will use. > > >> On Wednesday, April 24, 2019 at 1:08:48 PM UTC-4, Randall Becker wrote: >>> >>> This is a new situation that I have encountered after a clean install of >>> 2.164. Attempting to use an SSH keypair (with passphrase) to talk to >>> BitBucket.org, in a Multibranch Pipeline job. The key is properly >>> configured as an Private Key (entered manually) with a Passphrase. >>> >>> When I hit Scan Multibranch Pipeline Now, Jenkins immediately prompts >>> the JVM's stderr for the passphrase. As an example: >>> >>> Enter passphrase for key '/tmp/ssh6766884284790436436.key': >>> >>> I also get an error in the Multibranch scan log: >>> >>> > git ls-remote [email protected]:group/repo.git # edited, of course >>> ERROR: [Wed Apr 24 16:58:41 UTC 2019] Could not update folder level actions >>> from source 73a4292e-,,,, >>> hudson.plugins.git.GitException: Command "git ls-remote >>> [email protected]:group/repo.git" returned status code 128: >>> stdout: >>> stderr: Permission denied (publickey). >>> fatal: Could not read from remote repository. >>> >>> >>> This is bizarre. I'm running Ubuntu 16.04 using the default JRE. This >>> did not happen on earlier versions of Jenkins that were running in Docker >>> images - I had to remove Docker for VPN reasons. >>> >>> I'm basically off the air at this point. Did I just miss a plugin or do >>> something silly? >>> >>> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/30f56e57-d3de-4e43-96dc-d07aa4ebdcda%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/30f56e57-d3de-4e43-96dc-d07aa4ebdcda%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/f475e8c0-ab7a-421b-9bcd-95a85ecb8c67%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
