org.jenkins_ci.plugins.build_cause_run_condition
Class ExtendedCauseCondition.UpstreamCauseCondition

java.lang.Object
  extended by org.jenkins_ci.plugins.build_cause_run_condition.BuildCauseCondition
      extended by org.jenkins_ci.plugins.build_cause_run_condition.ExtendedCauseCondition.UpstreamCauseCondition
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<BuildCauseCondition>
Enclosing class:
ExtendedCauseCondition

public static class ExtendedCauseCondition.UpstreamCauseCondition
extends BuildCauseCondition

Looks to see if any of the causes of the build match the passed in project list When the project list is empty it assumes that any project build matches.


Nested Class Summary
static class ExtendedCauseCondition.UpstreamCauseCondition.UpstreamCauseConditionDescriptor
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
ExtendedCauseCondition.UpstreamCauseCondition(String projects)
           
 
Method Summary
 String getProjects()
          Used for generating the config UI.
 boolean runPerform(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
          Performs the check of the condition Looks to see if any of the causes of the build match the passed in project list
 
Methods inherited from class org.jenkins_ci.plugins.build_cause_run_condition.BuildCauseCondition
all, getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedCauseCondition.UpstreamCauseCondition

@DataBoundConstructor
public ExtendedCauseCondition.UpstreamCauseCondition(String projects)
Method Detail

getProjects

public String getProjects()
Used for generating the config UI.


runPerform

public boolean runPerform(hudson.model.AbstractBuild<?,?> build,
                          hudson.model.BuildListener listener)
                   throws InterruptedException
Performs the check of the condition Looks to see if any of the causes of the build match the passed in project list

Specified by:
runPerform in class BuildCauseCondition
Returns:
true if the condition is allowed false if not allowed to proceed.
Throws:
InterruptedException


Copyright © 2004-2012. All Rights Reserved.