Class ProjectUtil
java.lang.Object
au.com.centrumsystems.hudson.plugin.util.ProjectUtil
Provides helper methods for #hudson.model.AbstractProject
- Author:
- Centrum Systems
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<AbstractProject<?,?>> getDownstreamProjects(AbstractProject<?, ?> currentProject) Given a Project get a List of all of its Downstream projectsstatic ParametersActiongetProjectParametersAction(AbstractProject<?, ?> project) Gets the ParametersAction of an AbstractProjectstatic booleanhasDownstreamProjects(AbstractProject<?, ?> currentProject) Determines whether a project has any downstream projects.static booleanisManualTrigger(AbstractProject<?, ?> upstreamProject, AbstractProject<?, ?> downstreamProject) Determines if a manual trigger of the downstream project from the current upstream project is required.
-
Constructor Details
-
ProjectUtil
public ProjectUtil()Default constructor
-
-
Method Details
-
getDownstreamProjects
Given a Project get a List of all of its Downstream projects- Parameters:
currentProject- Current project- Returns:
- List of Downstream projects
-
hasDownstreamProjects
Determines whether a project has any downstream projects.- Parameters:
currentProject- - The project in question- Returns:
- - true: Current project has downstream projects; false: Current project does not have any downstream projects
-
isManualTrigger
public static boolean isManualTrigger(AbstractProject<?, ?> upstreamProject, AbstractProject<?, ?> downstreamProject) Determines if a manual trigger of the downstream project from the current upstream project is required.- Parameters:
upstreamProject- - The upstream projectdownstreamProject- - The downstream project- Returns:
- - true: Manual trigger required; false: Manual trigger not required
-
getProjectParametersAction
Gets the ParametersAction of an AbstractProject- Parameters:
project- - The AbstractProject- Returns:
- The ParametersAction of the AbstractProject
-