com.cloudbees.plugins
Class JobPrerequisites
java.lang.Object
hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
com.cloudbees.plugins.JobPrerequisites
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Action, hudson.model.Describable<hudson.model.JobProperty<?>>, hudson.model.ModelObject, hudson.model.ReconfigurableDescribable<hudson.model.JobProperty<?>>, hudson.tasks.BuildStep
public class JobPrerequisites
- extends hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
- implements hudson.model.Action
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
hudson.tasks.BuildStep.PublisherList |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.model.JobProperty |
owner |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
| Methods inherited from class hudson.model.JobProperty |
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, setOwner |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHELL_SCRIPT
public static final String SHELL_SCRIPT
- See Also:
- Constant Field Values
WINDOWS
public static final String WINDOWS
- See Also:
- Constant Field Values
JobPrerequisites
@DataBoundConstructor
public JobPrerequisites(String script,
String interpreter)
getScript
public String getScript()
check
public hudson.model.queue.CauseOfBlockage check(hudson.model.Node node)
throws IOException,
InterruptedException
- Returns:
- true if all prerequisites a met on the target Node
- Throws:
IOException
InterruptedException
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName in interface hudson.model.Action- Specified by:
getDisplayName in interface hudson.model.ModelObject
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName in interface hudson.model.Action
getUrlName
public String getUrlName()
- Specified by:
getUrlName in interface hudson.model.Action
Copyright © 2012. All Rights Reserved.