| Constructor and Description |
|---|
CLIConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
CLIConnectionFactory |
authorization(String value)
For CLI connection that goes through HTTP, sometimes you need
to pass in the custom authentication header (before Jenkins even get to authenticate
the CLI channel.) This method lets you specify the value of this header.
|
CLIConnectionFactory |
basicAuth(String userInfo)
Convenience method to call
authorization with the HTTP basic authentication. |
CLIConnectionFactory |
basicAuth(String username,
String password)
Convenience method to call
authorization with the HTTP basic authentication. |
CLI |
connect()
Deprecated.
Specific to Remoting-based protocol.
|
CLIConnectionFactory |
executorService(ExecutorService es)
This
ExecutorService is used to execute closures received from the server. |
CLIConnectionFactory |
httpsProxyTunnel(String value)
Configures the HTTP proxy that we use for making a plain TCP/IP connection.
|
CLIConnectionFactory |
url(String jenkins) |
CLIConnectionFactory |
url(URL jenkins)
Top URL of the Jenkins to connect to.
|
public CLIConnectionFactory url(URL jenkins)
public CLIConnectionFactory url(String jenkins) throws MalformedURLException
MalformedURLExceptionpublic CLIConnectionFactory executorService(ExecutorService es)
ExecutorService is used to execute closures received from the server.
Used only in Remoting mode.public CLIConnectionFactory httpsProxyTunnel(String value)
public CLIConnectionFactory authorization(String value)
public CLIConnectionFactory basicAuth(String username, String password)
authorization with the HTTP basic authentication.
Currently unused.public CLIConnectionFactory basicAuth(String userInfo)
authorization with the HTTP basic authentication.
Cf. BasicHeaderApiTokenAuthenticator.@Deprecated public CLI connect() throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2004–2018. All rights reserved.