Console Output
[ssh-agent] Using credentials git.dnet (User for CI/CD)
[ssh-agent] Looking for ssh-agent implementation...
[ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine)
$ ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-WtX8H6m8HV6K/agent.4581
SSH_AGENT_PID=4583
Running ssh-add (command line suppressed)
Identity added: /var/lib/jenkins/workspace/dnet-hadoop_CD_PROD_aggregation@tmp/private_key_1169608246571658774.key (git.dnet)
[ssh-agent] Started.
$ ssh-agent -k
unset SSH_AUTH_SOCK;
unset SSH_AGENT_PID;
echo Agent pid 4583 killed;
[ssh-agent] Stopped.