public class DockerSimpleBuildWrapper
extends jenkins.tasks.SimpleBuildWrapper
getSlaveName()
slave.
Body may assign tasks by Label
using Actions or do anything directly on it.
By default DockerOnceRetentionStrategy
is used and terminates
slave after first execution, set other or override it with custom logic.Modifier and Type | Class and Description |
---|---|
static class |
DockerSimpleBuildWrapper.DescriptorImpl |
static class |
DockerSimpleBuildWrapper.DisposerImpl
Terminates slave for specified slaveName.
|
jenkins.tasks.SimpleBuildWrapper.Context, jenkins.tasks.SimpleBuildWrapper.Disposer
Constructor and Description |
---|
DockerSimpleBuildWrapper(YADockerConnector connector,
DockerSlaveConfig config) |
Modifier and Type | Method and Description |
---|---|
DockerSlaveConfig |
getConfig() |
YADockerConnector |
getConnector() |
String |
getSlaveName() |
protected void |
setSlaveName(String slaveName) |
void |
setUp(jenkins.tasks.SimpleBuildWrapper.Context context,
hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.EnvVars initialEnvironment) |
@DataBoundConstructor public DockerSimpleBuildWrapper(@Nonnull YADockerConnector connector, @Nonnull DockerSlaveConfig config)
public YADockerConnector getConnector()
public DockerSlaveConfig getConfig()
@CheckForNull public String getSlaveName()
protected void setSlaveName(String slaveName)
public void setUp(jenkins.tasks.SimpleBuildWrapper.Context context, hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener, hudson.EnvVars initialEnvironment) throws IOException, InterruptedException
setUp
in class jenkins.tasks.SimpleBuildWrapper
IOException
InterruptedException
Copyright © 2016–2020. All rights reserved.