Class DockerBuilderControlOptionRun
java.lang.Object
com.nirima.jenkins.plugins.docker.builder.DockerBuilderControlOption
com.nirima.jenkins.plugins.docker.builder.DockerBuilderControlCloudOption
com.nirima.jenkins.plugins.docker.builder.DockerBuilderControlOptionRun
- All Implemented Interfaces:
Describable<DockerBuilderControlOption>
,Serializable
Build step that allows run container through existed DockerCloud
- Author:
- magnayn
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.nirima.jenkins.plugins.docker.builder.DockerBuilderControlOption
DockerBuilderControlOption.DockerBuilderControlOptionDescriptor
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
final String
final String
final Long
final Long
final String
final Integer
final String
final String
final String
final String
final String
final String
final String
final String
final Integer
final Integer
final String
final String
final boolean
final Integer
final boolean
final String
final String
Fields inherited from class com.nirima.jenkins.plugins.docker.builder.DockerBuilderControlCloudOption
cloudName
-
Constructor Summary
ConstructorDescriptionDockerBuilderControlOptionRun
(String cloudName, String image, String pullCredentialsId, String dnsString, String dnsSearchString, String network, String dockerCommand, String mountsString, String volumesFrom, String environmentsString, String hostname, String user, String extraGroupsString, Integer memoryLimit, Integer memorySwap, String cgroupParent, String cpus, Long cpuPeriod, Long cpuQuota, Integer cpuShares, Integer shmSize, String bindPorts, boolean bindAllPorts, boolean privileged, boolean tty, String macAddress) -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(Run<?, ?> build, Launcher launcher, TaskListener listener) org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint
Methods inherited from class com.nirima.jenkins.plugins.docker.builder.DockerBuilderControlCloudOption
getCloud, getCloudName
Methods inherited from class com.nirima.jenkins.plugins.docker.builder.DockerBuilderControlOption
getDescriptor, getLaunchAction
-
Field Details
-
image
-
dnsString
-
dnsSearchString
-
network
-
dockerCommand
-
mountsString
-
volumesFrom
-
environmentsString
-
privileged
public final boolean privileged -
tty
public final boolean tty -
hostname
-
user
-
extraGroupsString
-
bindPorts
-
memoryLimit
-
memorySwap
-
cgroupParent
-
cpus
-
cpuPeriod
-
cpuQuota
-
shmSize
-
bindAllPorts
public final boolean bindAllPorts -
macAddress
-
-
Constructor Details
-
DockerBuilderControlOptionRun
@DataBoundConstructor public DockerBuilderControlOptionRun(String cloudName, String image, String pullCredentialsId, String dnsString, String dnsSearchString, String network, String dockerCommand, String mountsString, String volumesFrom, String environmentsString, String hostname, String user, String extraGroupsString, Integer memoryLimit, Integer memorySwap, String cgroupParent, String cpus, Long cpuPeriod, Long cpuQuota, Integer cpuShares, Integer shmSize, String bindPorts, boolean bindAllPorts, boolean privileged, boolean tty, String macAddress)
-
-
Method Details
-
getRegistry
public org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint getRegistry() -
execute
public void execute(Run<?, ?> build, Launcher launcher, TaskListener listener) throws com.github.dockerjava.api.exception.DockerException, IOException- Specified by:
execute
in classDockerBuilderControlOption
- Throws:
com.github.dockerjava.api.exception.DockerException
IOException
-