hudson.plugins.parameterizedtrigger
Class BuildTriggerConfig

java.lang.Object
  extended by hudson.plugins.parameterizedtrigger.BuildTriggerConfig
All Implemented Interfaces:
hudson.model.Describable<BuildTriggerConfig>
Direct Known Subclasses:
BlockableBuildTriggerConfig, FileBuildTriggerConfig, PredefinedPropertiesBuildTriggerConfig

public class BuildTriggerConfig
extends Object
implements hudson.model.Describable<BuildTriggerConfig>


Nested Class Summary
static class BuildTriggerConfig.DescriptorImpl
           
 
Constructor Summary
BuildTriggerConfig(String projects, ResultCondition condition, AbstractBuildParameters... configs)
           
BuildTriggerConfig(String projects, ResultCondition condition, List<AbstractBuildParameters> configs)
           
 
Method Summary
 ResultCondition getCondition()
           
 List<AbstractBuildParameters> getConfigs()
           
 hudson.model.Descriptor<BuildTriggerConfig> getDescriptor()
           
 List<hudson.model.AbstractProject> getProjectList()
           
 String getProjects()
           
 boolean onDeleted(String oldName)
           
 boolean onJobRenamed(String oldName, String newName)
           
 List<Future<hudson.model.AbstractBuild>> perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          Note that with Hudson 1.341, trigger should be using BuildTrigger.buildDependencyGraph(AbstractProject, hudson.model.DependencyGraph).
protected  Future schedule(hudson.model.AbstractBuild<?,?> build, hudson.model.AbstractProject project, List<hudson.model.Action> list)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuildTriggerConfig

@DataBoundConstructor
public BuildTriggerConfig(String projects,
                                               ResultCondition condition,
                                               List<AbstractBuildParameters> configs)

BuildTriggerConfig

public BuildTriggerConfig(String projects,
                          ResultCondition condition,
                          AbstractBuildParameters... configs)
Method Detail

getConfigs

public List<AbstractBuildParameters> getConfigs()

getProjects

public String getProjects()

getCondition

public ResultCondition getCondition()

getProjectList

public List<hudson.model.AbstractProject> getProjectList()

perform

public List<Future<hudson.model.AbstractBuild>> perform(hudson.model.AbstractBuild<?,?> build,
                                                        hudson.Launcher launcher,
                                                        hudson.model.BuildListener listener)
                                                 throws InterruptedException,
                                                        IOException
Note that with Hudson 1.341, trigger should be using BuildTrigger.buildDependencyGraph(AbstractProject, hudson.model.DependencyGraph).

Throws:
InterruptedException
IOException

schedule

protected Future schedule(hudson.model.AbstractBuild<?,?> build,
                          hudson.model.AbstractProject project,
                          List<hudson.model.Action> list)
                   throws InterruptedException,
                          IOException
Throws:
InterruptedException
IOException

onJobRenamed

public boolean onJobRenamed(String oldName,
                            String newName)

onDeleted

public boolean onDeleted(String oldName)

getDescriptor

public hudson.model.Descriptor<BuildTriggerConfig> getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<BuildTriggerConfig>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2011. All Rights Reserved.