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) |
CLIConnectionFactory |
basicAuth(String username,
String password)
Convenience method to call
authorization with the HTTP basic authentication. |
CLI |
connect() |
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
MalformedURLException
public CLIConnectionFactory executorService(ExecutorService es)
ExecutorService
is used to execute closures received from the server.public CLIConnectionFactory httpsProxyTunnel(String value)
public CLIConnectionFactory authorization(String value)
public CLIConnectionFactory basicAuth(String username, String password)
authorization
with the HTTP basic authentication.public CLIConnectionFactory basicAuth(String userInfo)
public CLI connect() throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2017. All rights reserved.