public class NodePoolSlave
extends hudson.model.Slave
Modifier and Type | Class and Description |
---|---|
static class |
NodePoolSlave.NodePoolSlaveDescriptor
It makes jelly rendering on the node configuration page happy to have this defined.
|
hudson.model.Slave.JnlpJar, hudson.model.Slave.SlaveDescriptor
Constructor and Description |
---|
NodePoolSlave(NodePoolNode nodePoolNode,
String credentialsId)
Create a new slave
|
Modifier and Type | Method and Description |
---|---|
hudson.model.Computer |
createComputer()
Returns a new computer based on the nodepool node object associated with this class instance.
|
hudson.model.Slave.SlaveDescriptor |
getDescriptor() |
String |
getHoldReason()
Returns the hold reason value.
|
String |
getHoldUser()
Returns the user requesting the hold.
|
NodePoolNode |
getNodePoolNode() |
boolean |
isHeld()
If true, hold onto the node after the associated build is completed.
|
hudson.model.Node |
reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form)
This gets invoked when the user clicks "Save" while editing the "Node" in the UI.
|
void |
setHeld(boolean held)
Set to true in order to hold the node after the build is completed.
|
void |
setHoldReason(String holdReason)
Sets the hold reason value.
|
void |
setHoldUser(String holdUser)
Sets the user id for the user requesting the node hold.
|
createLauncher, equals, getClockDifferenceCallable, getComputer, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, readResolve, setLabelString, setLauncher, setMode, setNodeDescription, setNodeName, setNodeProperties, setNumExecutors, setRetentionStrategy, setUserId, toString
canTake, canTake, checkPermission, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodeProperty, getNodeProperty, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, hasPermission, isAcceptingTasks, isHoldOffLaunchUntilSave, save, toComputer
@DataBoundConstructor public NodePoolSlave(NodePoolNode nodePoolNode, String credentialsId) throws hudson.model.Descriptor.FormException, IOException
nodePoolNode
- the node from NodePoolcredentialsId
- the Jenkins credential identifierDescriptor.FormException
- on configuration exceptionIOException
- on configuration exceptionpublic NodePoolNode getNodePoolNode()
public hudson.model.Computer createComputer()
createComputer
in class hudson.model.Slave
public hudson.model.Node reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws hudson.model.Descriptor.FormException
reconfigure
in interface hudson.model.ReconfigurableDescribable<hudson.model.Node>
reconfigure
in class hudson.model.Node
req
- stapler requestform
- form data to update slave withDescriptor.FormException
- if things go sidewayspublic boolean isHeld()
public void setHeld(boolean held)
held
- whether to hold the node after the build completespublic String getHoldReason()
public void setHoldReason(String holdReason)
holdReason
- the hold reason - typically a justification for the hold.public String getHoldUser()
public void setHoldUser(String holdUser)
holdUser
- the user id of the user requesting the node holdpublic hudson.model.Slave.SlaveDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.model.Node>
getDescriptor
in class hudson.model.Slave
Copyright © 2016–2018. All rights reserved.