public class DockerShellStep
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
Modifier and Type | Class and Description |
---|---|
static class |
DockerShellStep.DescriptorImpl |
static class |
DockerShellStep.MyAttachContainerResultCallback |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
DockerShellStep() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addRunVars(hudson.model.Run run,
hudson.model.TaskListener listener,
com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.CreateContainerCmd containerConfig) |
protected void |
appendContainerConfig(hudson.model.Run<?,?> run,
hudson.model.TaskListener listener,
com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.CreateContainerCmd containerConfig,
YADockerConnector connector) |
YADockerConnector |
getConnector() |
DockerContainerLifecycle |
getContainerLifecycle() |
protected static hudson.EnvVars |
getEnvVars(hudson.model.Run run,
hudson.model.TaskListener listener)
Return all job related vars without executor vars.
|
String |
getExecutorScript() |
YADockerConnector |
getLongConnector() |
String |
getShellScript() |
protected static void |
insertLabels(com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.CreateContainerCmd containerConfig,
hudson.model.Run run)
Append some tags to identify who created this container.
|
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
void |
setConnector(YADockerConnector connector) |
void |
setContainerLifecycle(DockerContainerLifecycle containerLifecycle) |
void |
setExecutorScript(String executorScript) |
void |
setLongConnector(YADockerConnector longConnector) |
void |
setShellScript(String shellScript) |
all, getDescriptor, getRequiredMonitorService, prebuild
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
public YADockerConnector getConnector()
@DataBoundSetter public void setConnector(YADockerConnector connector)
@CheckForNull public YADockerConnector getLongConnector()
@DataBoundSetter public void setLongConnector(@CheckForNull YADockerConnector longConnector)
public DockerContainerLifecycle getContainerLifecycle()
@DataBoundSetter public void setContainerLifecycle(DockerContainerLifecycle containerLifecycle)
@CheckForNull public String getShellScript()
@DataBoundSetter public void setShellScript(String shellScript)
@CheckForNull public String getExecutorScript()
@DataBoundSetter public void setExecutorScript(String executorScript)
public void perform(@Nonnull hudson.model.Run<?,?> run, @Nonnull hudson.FilePath workspace, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws InterruptedException, IOException
perform
in interface jenkins.tasks.SimpleBuildStep
InterruptedException
IOException
protected void appendContainerConfig(hudson.model.Run<?,?> run, hudson.model.TaskListener listener, com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.CreateContainerCmd containerConfig, YADockerConnector connector)
protected static void addRunVars(hudson.model.Run run, hudson.model.TaskListener listener, com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.CreateContainerCmd containerConfig)
protected static hudson.EnvVars getEnvVars(hudson.model.Run run, hudson.model.TaskListener listener) throws IOException, InterruptedException
IOException
InterruptedException
protected static void insertLabels(com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.CreateContainerCmd containerConfig, hudson.model.Run run)
Copyright © 2016–2020. All rights reserved.