Class ExecRemoteAgentFactory

  • All Implemented Interfaces:
    ExtensionPoint

    @Extension
    public class ExecRemoteAgentFactory
    extends RemoteAgentFactory
    A factory that uses the native SSH agent installed on a remote system. SSH agent has to be in PATH environment variable.
    • Constructor Detail

      • ExecRemoteAgentFactory

        public ExecRemoteAgentFactory()
    • Method Detail

      • isSupported

        public boolean isSupported​(Launcher launcher,
                                   TaskListener listener)
        Checks if the supplied launcher is supported by this factory.
        Specified by:
        isSupported in class RemoteAgentFactory
        Parameters:
        launcher - the launcher on which the factory would be asked to start a ssh-agent.
        listener - a listener in case any user diagnostics are to be printed.
        Returns:
        false if the factory does not want to try and start an ssh-agent on the launcher.
      • start

        public RemoteAgent start​(LauncherProvider launcherProvider,
                                 TaskListener listener,
                                 FilePath temp)
                          throws Throwable
        Start a ssh-agent on the specified launcher.
        Specified by:
        start in class RemoteAgentFactory
        Parameters:
        launcherProvider - provides launchers on which to start a ssh-agent.
        listener - a listener for any diagnostics.
        temp - a temporary directory to use; null if unspecified
        Returns:
        the agent.
        Throws:
        Throwable - if the agent cannot be started.