Package com.parallels.jenkins
Class PrlDevopsAgent
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Node
hudson.model.Slave
hudson.slaves.AbstractCloudSlave
com.parallels.jenkins.PrlDevopsAgent
- All Implemented Interfaces:
ExtensionPoint,Describable<Node>,ModelObject,PersistenceRoot,ReconfigurableDescribable<Node>,Saveable,SearchableModelObject,SearchItem,AccessControlled,Serializable,OnMaster
A provisioned VM registered as a Jenkins agent. The agent is bootstrapped
using an inbound agent connection via
PrlDevopsComputerLauncher, which
uses the Parallels DevOps Service execute API to download and start agent.jar.
The agent then connects TO the Jenkins controller (not SSH-based).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Slave
Slave.JnlpJar, Slave.SlaveDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Node
holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS -
Constructor Summary
ConstructorsConstructorDescriptionPrlDevopsAgent(String cloudName, AgentTemplate template, String vmId, String vmIp, PrlDevopsApiClient apiClient) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_terminate(TaskListener listener) Looks up the cloud that provisioned this agent and returns its API client.intlonggetVmId()getVmIp()Methods inherited from class hudson.slaves.AbstractCloudSlave
terminateMethods inherited from class hudson.model.Slave
createLauncher, drainLabelsToTrim, equals, getClockDifferenceCallable, getComputer, getDescriptor, getLabelAtomSet, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getRemoteFS, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, readResolve, save, setLabelString, setLauncher, setMode, setNodeDescription, setNodeName, setNodeProperties, setNumExecutors, setRetentionStrategy, setUserId, toStringMethods inherited from class hudson.model.Node
canTake, canTake, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getConfigFile, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodeProperty, getNodeProperty, getNodePropertyDescriptors, getRootDir, getSearchUrl, getSelfLabel, getTemporaryOfflineCause, isAcceptingTasks, isHoldOffLaunchUntilSave, onLoad, reconfigure, reconfigure, toComputerMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface hudson.search.SearchItem
getSearchGroup, getSearchIcon
-
Constructor Details
-
PrlDevopsAgent
public PrlDevopsAgent(String cloudName, AgentTemplate template, String vmId, String vmIp, PrlDevopsApiClient apiClient) throws Descriptor.FormException, IOException - Throws:
Descriptor.FormExceptionIOException
-
-
Method Details
-
getCloudName
-
getTemplate
-
getVmId
-
getVmIp
-
getProvisionedAt
public long getProvisionedAt() -
getApiClient
Looks up the cloud that provisioned this agent and returns its API client. Used by retention strategy and other components that need to interact with the VM.- Throws:
IOException
-
getNumExecutors
public int getNumExecutors()- Overrides:
getNumExecutorsin classSlave
-
getLabelString
- Overrides:
getLabelStringin classSlave
-
createComputer
- Specified by:
createComputerin classAbstractCloudSlave
-
_terminate
- Specified by:
_terminatein classAbstractCloudSlave
-