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 |
|---|---|
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".
|
KeyMaterial |
materialize(hudson.model.AbstractBuild build)
Makes the key materials available locally for the on-going build
and returns
KeyMaterial that gives you the parameters needed to access it. |
KeyMaterial |
materialize(hudson.FilePath dir,
DockerServerCredentials credentials)
The most raw form of the
materialize(...) family of methods in case
you need to control every aspect of it. |
KeyMaterial |
materialize(hudson.model.Item context,
hudson.remoting.VirtualChannel target)
Makes the key materials available locally and returns
KeyMaterial 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 KeyMaterial materialize(hudson.model.AbstractBuild build) throws IOException, InterruptedException
KeyMaterial that gives you the parameters needed to access it.IOExceptionInterruptedExceptionpublic KeyMaterial materialize(hudson.model.Item context, hudson.remoting.VirtualChannel target) throws IOException, InterruptedException
KeyMaterial that gives you the parameters
needed to access it.IOExceptionInterruptedExceptionpublic KeyMaterial materialize(hudson.FilePath dir, @Nullable DockerServerCredentials credentials) throws IOException, InterruptedException
materialize(...) family of methods in case
you need to control every aspect of it.IOExceptionInterruptedExceptionCopyright © 2004-2015. All Rights Reserved.