On Wed, Apr 24, 2019 at 12:05 PM Randall Becker <[email protected]> wrote:
> Thanks, however, I'm not sure this is it. My startup script is: > > unset TERM # Not really useful > nohup java \ > -Dorg.jenkinsci.plugins.gitclient.CliGitAPIImpl.useSETSID=true \ > -jar jenkins.war \ > < /dev/null 2>&1 \ > > jenkins.log & > > which should not be attached to a terminal, but is. The define seems to > have no effect. There are no SSH variables in the environment. And, most > importantly, I cannot use a passphrase-less keypair to talk to > bitbucket.org without being fired. Did I miss something? > -Dorg.jenkinsci.plugins.gitclient.CliGitAPIImpl.useSETSID=true is what I use. Are you running git client plugin 2.4.2 or later? You could also try prefixing the java process with setsid instead of nohup, in case that behaves better with command line ssh. > > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/8c70123f-5388-48cc-a6b8-dcca6d36fb00%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/8c70123f-5388-48cc-a6b8-dcca6d36fb00%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/CAO49JtFFo-fgPP4hv2xr-4uN9%3D89y2L7sHRt5Oro6yx3DfDaMg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
