org.jenkins_ci.plugins.build_cause_run_condition
Class ExtendedCauseCondition.UserBuildCauseCondition

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.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 Class Summary
static class ExtendedCauseCondition.UserBuildCauseCondition.UserBuildCauseConditionDescriptor
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
ExtendedCauseCondition.UserBuildCauseCondition(String users)
           
 
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 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.UserBuildCauseCondition

@DataBoundConstructor
public ExtendedCauseCondition.UserBuildCauseCondition(String users)
Method Detail

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.