public final class JenkinsClient
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
JenkinsClient.Builder |
| Constructor and Description |
|---|
JenkinsClient()
Create a JenkinsClient inferring endpoint and authentication from
environment and system properties.
|
JenkinsClient(java.lang.String endPoint,
JenkinsAuthentication authentication,
java.util.Properties overrides,
java.util.List<com.google.inject.Module> modules)
Create an JenkinsClient.
|
| Modifier and Type | Method and Description |
|---|---|
JenkinsApi |
api() |
AuthenticationType |
authType() |
java.lang.String |
authValue() |
static JenkinsClient.Builder |
builder() |
void |
close() |
java.lang.String |
credentials()
Deprecated.
|
java.lang.String |
endPoint() |
java.util.Properties |
overrides() |
public JenkinsClient()
public JenkinsClient(@Nullable
java.lang.String endPoint,
@Nullable
JenkinsAuthentication authentication,
@Nullable
java.util.Properties overrides,
@Nullable
java.util.List<com.google.inject.Module> modules)
endPoint - URL of Jenkins instance.authentication - authentication used to connect to Jenkins instance.overrides - jclouds Properties to override defaults when creating a new JenkinsApi.modules - a list of modules to be passed to the Contextbuilder, e.g. for logging.public java.lang.String endPoint()
@Deprecated public java.lang.String credentials()
public java.util.Properties overrides()
public java.lang.String authValue()
public AuthenticationType authType()
public JenkinsApi api()
public static JenkinsClient.Builder builder()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException