org.jenkins_ci.plugins.build_cause_run_condition
Class ExtendedCauseCondition.UserBuildCauseCondition
java.lang.Object
org.jenkins_ci.plugins.build_cause_run_condition.BuildCauseCondition
org.jenkins_ci.plugins.build_cause_run_condition.ExtendedCauseCondition.UserBuildCauseCondition
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<BuildCauseCondition>
- Enclosing class:
- ExtendedCauseCondition
public static class ExtendedCauseCondition.UserBuildCauseCondition
- extends BuildCauseCondition
Looks to see if any of the causes of the build match the passed in user list
When the user list is empty it assumes that any user build matches.
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Method Summary |
String |
getUsers()
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 user list |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtendedCauseCondition.UserBuildCauseCondition
@DataBoundConstructor
public ExtendedCauseCondition.UserBuildCauseCondition(String users)
getUsers
public String getUsers()
- 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 user 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.