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)
Deprecated.
|
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)
Deprecated.
|
KeyMaterialFactory |
newKeyMaterialFactory(hudson.model.Run 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()
@Deprecated public KeyMaterialFactory newKeyMaterialFactory(@Nonnull hudson.model.AbstractBuild build) throws IOException, InterruptedException
newKeyMaterialFactory(Run, VirtualChannel)KeyMaterialFactory that gives you the parameters needed to access it.IOExceptionInterruptedException@Deprecated public KeyMaterialFactory newKeyMaterialFactory(@Nonnull hudson.model.Item context, @Nonnull hudson.remoting.VirtualChannel target) throws IOException, InterruptedException
newKeyMaterialFactory(Run, VirtualChannel)KeyMaterialFactory that gives you the parameters
needed to access it.IOExceptionInterruptedExceptionpublic KeyMaterialFactory newKeyMaterialFactory(@Nonnull hudson.model.Run context, @Nonnull 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 © 2016–2019. All rights reserved.