public class BuiltInContainer extends Object implements hudson.model.BuildBadgeAction, hudson.model.EnvironmentContributingAction
Constructor and Description |
---|
BuiltInContainer(Docker docker) |
Modifier and Type | Method and Description |
---|---|
void |
bindMount(String path) |
void |
bindMount(String hostPath,
String path) |
void |
buildEnvVars(hudson.model.AbstractBuild<?,?> build,
hudson.EnvVars env) |
void |
enable() |
void |
enable(boolean enable) |
String |
getDisplayName() |
String |
getIconFileName() |
String |
getImage() |
List<Integer> |
getPorts() |
Map<Integer,Integer> |
getPortsMap() |
String |
getUrlName() |
Map<String,String> |
getVolumes() |
Map<String,String> |
getVolumes(hudson.model.AbstractBuild build) |
boolean |
isEnabled() |
boolean |
tearDown() |
public BuiltInContainer(Docker docker)
public void enable()
public void enable(boolean enable)
public boolean isEnabled()
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getImage()
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getUrlName()
getUrlName
in interface hudson.model.Action
public boolean tearDown() throws IOException, InterruptedException
IOException
InterruptedException
public void buildEnvVars(hudson.model.AbstractBuild<?,?> build, hudson.EnvVars env)
buildEnvVars
in interface hudson.model.EnvironmentContributingAction
public void bindMount(String path)
@Nonnull public Map<String,String> getVolumes(hudson.model.AbstractBuild build) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2016–2018. All rights reserved.