org.jenkins_ci.plugins.build_cause_run_condition
Class ExtendedCauseCondition.UpstreamCauseCondition
java.lang.Object
org.jenkins_ci.plugins.build_cause_run_condition.BuildCauseCondition
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 classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtendedCauseCondition.UpstreamCauseCondition
@DataBoundConstructor
public ExtendedCauseCondition.UpstreamCauseCondition(String projects)
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.