public class DockerComputerJNLPLauncher extends DockerComputerLauncher
Steps: - runs container with nop command - as launch action executes jnlp connection to master
Modifier and Type | Class and Description |
---|---|
static class |
DockerComputerJNLPLauncher.DescriptorImpl |
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_TIMEOUT |
static String |
DEFAULT_USER |
protected String |
jenkinsUrl |
protected String |
jvmOpts |
protected long |
launchTimeout |
protected boolean |
noCertificateCheck |
protected boolean |
reconnect |
protected String |
slaveOpts |
protected String |
user |
Constructor and Description |
---|
DockerComputerJNLPLauncher() |
Modifier and Type | Method and Description |
---|---|
void |
afterDisconnect(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener) |
void |
appendContainerConfig(DockerSlaveTemplate dockerSlaveTemplate,
com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.CreateContainerCmd createContainerCmd)
Contribute container parameters needed for launcher.
|
void |
beforeDisconnect(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener) |
boolean |
equals(Object o) |
String |
getJenkinsUrl() |
String |
getJenkinsUrl(String rootUrl) |
String |
getJvmOpts() |
hudson.slaves.ComputerLauncher |
getLauncher() |
long |
getLaunchTimeout() |
DockerComputerLauncher |
getPreparedLauncher(String cloudId,
DockerSlaveTemplate template,
com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.InspectContainerResponse containerInspectResponse)
Clone object.
|
String |
getSlaveOpts() |
String |
getUser() |
int |
hashCode() |
boolean |
isLaunchSupported() |
boolean |
isNoCertificateCheck() |
boolean |
isNoReconnect() |
void |
launch(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener) |
void |
setJenkinsUrl(String jenkinsUrl) |
void |
setJvmOpts(String jvmOpts) |
void |
setLaunchTimeout(long launchTimeout) |
void |
setNoCertificateCheck(boolean noCertificateCheck) |
void |
setNoReconnect(boolean noReconnect) |
void |
setSlaveOpts(String slaveOpts) |
void |
setUser(String user) |
String |
toString() |
boolean |
waitUp(String cloudId,
DockerSlaveTemplate dockerSlaveTemplate,
com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.InspectContainerResponse ir)
Wait until slave is up and ready for connection.
|
afterContainerCreate, setLauncher
public static final long DEFAULT_TIMEOUT
public static final String DEFAULT_USER
protected long launchTimeout
protected String user
protected String jvmOpts
protected String slaveOpts
protected String jenkinsUrl
protected boolean noCertificateCheck
protected boolean reconnect
@DataBoundConstructor public DockerComputerJNLPLauncher()
@DataBoundSetter public void setSlaveOpts(String slaveOpts)
@DataBoundSetter public void setJenkinsUrl(String jenkinsUrl)
@DataBoundSetter public void setJvmOpts(String jvmOpts)
@DataBoundSetter public void setNoCertificateCheck(boolean noCertificateCheck)
public boolean isNoCertificateCheck()
@DataBoundSetter public void setNoReconnect(boolean noReconnect)
public boolean isNoReconnect()
@DataBoundSetter public void setUser(String user)
public String getUser()
public long getLaunchTimeout()
@DataBoundSetter public void setLaunchTimeout(long launchTimeout)
public boolean isLaunchSupported()
isLaunchSupported
in class hudson.slaves.ComputerLauncher
public void launch(@Nonnull hudson.slaves.SlaveComputer computer, hudson.model.TaskListener listener) throws IOException, InterruptedException
launch
in class hudson.slaves.DelegatingComputerLauncher
IOException
InterruptedException
public void afterDisconnect(hudson.slaves.SlaveComputer computer, hudson.model.TaskListener listener)
afterDisconnect
in class hudson.slaves.DelegatingComputerLauncher
public void beforeDisconnect(hudson.slaves.SlaveComputer computer, hudson.model.TaskListener listener)
beforeDisconnect
in class hudson.slaves.DelegatingComputerLauncher
public DockerComputerLauncher getPreparedLauncher(String cloudId, DockerSlaveTemplate template, com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.InspectContainerResponse containerInspectResponse)
getPreparedLauncher
in class DockerComputerLauncher
public hudson.slaves.ComputerLauncher getLauncher()
getLauncher
in class hudson.slaves.DelegatingComputerLauncher
public void appendContainerConfig(DockerSlaveTemplate dockerSlaveTemplate, com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.CreateContainerCmd createContainerCmd) throws IOException
DockerComputerLauncher
appendContainerConfig
in class DockerComputerLauncher
IOException
public boolean waitUp(String cloudId, DockerSlaveTemplate dockerSlaveTemplate, com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.InspectContainerResponse ir)
DockerComputerLauncher
waitUp
in class DockerComputerLauncher
Copyright © 2016–2020. All rights reserved.