com.cloudbees.plugins
Class JobPrerequisites

java.lang.Object
  extended by hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
      extended by 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 Class Summary
static class JobPrerequisites.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static String SHELL_SCRIPT
           
static String WINDOWS
           
 
Fields inherited from class hudson.model.JobProperty
owner
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
JobPrerequisites(String script, String interpreter)
           
 
Method Summary
 hudson.model.queue.CauseOfBlockage check(hudson.model.Node node)
           
 String getDisplayName()
           
 String getIconFileName()
           
 String getScript()
           
 String getUrlName()
           
 
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
 

Field Detail

SHELL_SCRIPT

public static final String SHELL_SCRIPT
See Also:
Constant Field Values

WINDOWS

public static final String WINDOWS
See Also:
Constant Field Values
Constructor Detail

JobPrerequisites

@DataBoundConstructor
public JobPrerequisites(String script,
                                             String interpreter)
Method Detail

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.