For some reason the git executable is not getting the key passphrase, despite it being put in a txt file in the workspace@tmp dir on the agent, and git will instead ask for the passphrase in the terminal where I launched the agent. JGit is able to get the passphrase and run a checkout successfully.
I have included debug details below, can anyone provide guidance on how to fix this or next steps for further investigation?
Adding some debugging the following env variables are set when git is called:
DISPLAY=:
GIT_ASKPASS=echo
GIT_SSH=/var/tmp/workspace/test-vault@tmp/jenkins-gitclient-ssh17057598793954356813.sh-copy
GIT_SSH_VARIANT=ssh
GIT_TERMINAL_PROMPT=false
SSH_ASKPASS=/var/tmp/workspace/test-vault@tmp/jenkins-gitclient-pass11065529797750620112.sh
Versions:
Jenkins: 2.354
Pipeline: SCM step 400.v6b_89a_1317c9a_
SSH Agent 295.v9ca_a_1c7cc3a_a_
Git client 3.11.0
Git 4.11.3
I had created set of vms on my laptop just for this work