You can see Start Agent
used in " How to Connect to Remote SSH Agents? "
Place the following in the Suffix Start Agent Command
-jar-cache <path to jar cache directory>
Make sure there's a leading space so the parameters aren't tacked directly onto the
slave.jar
itself.
So the prefix/suffix are for Java options, not SSH option.
That is because the SSH Agent plugin is likely using JSch , not system ssh.
So adding the option you want might not be directly possible.
Check though is the .profile
/ .bashrc
are executed on the agent connection (as suggested by this troubleshooting step ): that would be enough for you to set environment variable there.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.