public class JenkinsUtils extends Object
| Constructor and Description |
|---|
JenkinsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Optional<DockerCloud> |
getCloudForBuild(hudson.model.AbstractBuild build)
If the build was on a cloud, get the ID of that cloud.
|
static com.google.common.base.Optional<DockerCloud> |
getCloudForChannel(hudson.remoting.VirtualChannel channel)
If the build was workflow, get the ID of that channel.
|
static com.google.common.base.Optional<DockerCloud> |
getCloudThatWeBuiltOn(hudson.model.Run<?,?> build,
hudson.Launcher launcher) |
static String |
getInstanceId() |
static DockerCloud |
getServer(String serverName) |
static Collection<DockerCloud> |
getServers()
Get the list of Docker servers.
|
public static com.google.common.base.Optional<DockerCloud> getCloudForBuild(hudson.model.AbstractBuild build)
public static com.google.common.base.Optional<DockerCloud> getCloudForChannel(hudson.remoting.VirtualChannel channel)
public static com.google.common.base.Optional<DockerCloud> getCloudThatWeBuiltOn(hudson.model.Run<?,?> build, hudson.Launcher launcher)
public static Collection<DockerCloud> getServers()
public static DockerCloud getServer(String serverName)
public static String getInstanceId()
Copyright © 2016–2017. All rights reserved.