public class DockerServerEndpoint extends hudson.model.AbstractDescribableImpl<DockerServerEndpoint>
As Describable it comes with pre-baked configuration form that you can use in
your builders/publishers/etc that interact with Docker daemon.
| Modifier and Type | Class and Description |
|---|---|
static class |
DockerServerEndpoint.DescriptorImpl |
| Constructor and Description |
|---|
DockerServerEndpoint(String uri,
String credentialsId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCredentialsId()
ID of the credentials used to talk to this endpoint.
|
String |
getUri()
Gets the endpoint in URI, such as "unix:///var/run/docker.sock".
|
int |
hashCode() |
KeyMaterialFactory |
newKeyMaterialFactory(hudson.model.AbstractBuild build)
Makes the key materials available locally for the on-going build
and returns
KeyMaterialFactory that gives you the parameters needed to access it. |
KeyMaterialFactory |
newKeyMaterialFactory(hudson.FilePath dir,
DockerServerCredentials credentials)
Create a
KeyMaterialFactory for connecting to the docker server/host. |
KeyMaterialFactory |
newKeyMaterialFactory(hudson.model.Item context,
hudson.remoting.VirtualChannel target)
Makes the key materials available locally and returns
KeyMaterialFactory that gives you the parameters
needed to access it. |
String |
toString() |
@Nullable public String getUri()
Null to indicate whatever Docker picks by default.
@Nullable public String getCredentialsId()
public KeyMaterialFactory newKeyMaterialFactory(hudson.model.AbstractBuild build) throws IOException, InterruptedException
KeyMaterialFactory that gives you the parameters needed to access it.IOExceptionInterruptedExceptionpublic KeyMaterialFactory newKeyMaterialFactory(hudson.model.Item context, hudson.remoting.VirtualChannel target) throws IOException, InterruptedException
KeyMaterialFactory that gives you the parameters
needed to access it.IOExceptionInterruptedExceptionpublic KeyMaterialFactory newKeyMaterialFactory(hudson.FilePath dir, @Nullable DockerServerCredentials credentials) throws IOException, InterruptedException
KeyMaterialFactory for connecting to the docker server/host.IOExceptionInterruptedExceptionCopyright © 2004-2015. All Rights Reserved.