public final class ProjectUtil extends Object
Modifier and Type | Method and Description |
---|---|
static hudson.util.ListBoxModel |
fillAllProjects(hudson.model.ItemGroup<?> context,
Class<? extends hudson.model.Job> type) |
static Map<String,hudson.model.AbstractProject<?,?>> |
getAllDownstreamProjects(hudson.model.AbstractProject first,
hudson.model.AbstractProject last)
Get all downstream projects for a given project.
|
static Map<String,hudson.model.AbstractProject<?,?>> |
getAllDownstreamProjects(hudson.model.AbstractProject first,
hudson.model.AbstractProject last,
Map<String,hudson.model.AbstractProject<?,?>> projects)
Get all downstream projects for a given project.
|
static List<hudson.model.AbstractProject> |
getDownstreamProjects(hudson.model.AbstractProject<?,?> project) |
static hudson.model.AbstractProject<?,?> |
getProject(String name,
hudson.model.ItemGroup context) |
static List<hudson.model.AbstractProject> |
getProjectList(String projects,
hudson.model.ItemGroup context,
hudson.EnvVars env) |
static Map<String,hudson.model.AbstractProject> |
getProjects(String regExp) |
static List<hudson.model.AbstractProject> |
getStartUpstreams(hudson.model.AbstractProject project) |
static org.jenkinsci.plugins.workflow.job.WorkflowJob |
getWorkflowJob(String projectName,
hudson.model.ItemGroup<? extends hudson.model.TopLevelItem> ownerItemGroup) |
static boolean |
isQueued(hudson.model.AbstractProject project,
hudson.model.AbstractBuild firstBuild) |
public static hudson.util.ListBoxModel fillAllProjects(hudson.model.ItemGroup<?> context, Class<? extends hudson.model.Job> type)
public static Map<String,hudson.model.AbstractProject<?,?>> getAllDownstreamProjects(hudson.model.AbstractProject first, hudson.model.AbstractProject last)
first
- The first projectlast
- The last project to visualizegetAllDownstreamProjects(
hudson.model.AbstractProject, hudson.model.AbstractProject, java.util.Map)
public static Map<String,hudson.model.AbstractProject<?,?>> getAllDownstreamProjects(hudson.model.AbstractProject first, hudson.model.AbstractProject last, Map<String,hudson.model.AbstractProject<?,?>> projects)
first
- The first projectlast
- The last project to visualizeprojects
- Current map of all sub projects.public static List<hudson.model.AbstractProject> getDownstreamProjects(hudson.model.AbstractProject<?,?> project)
public static hudson.model.AbstractProject<?,?> getProject(String name, hudson.model.ItemGroup context)
public static org.jenkinsci.plugins.workflow.job.WorkflowJob getWorkflowJob(String projectName, hudson.model.ItemGroup<? extends hudson.model.TopLevelItem> ownerItemGroup) throws PipelineException
PipelineException
public static boolean isQueued(hudson.model.AbstractProject project, hudson.model.AbstractBuild firstBuild)
public static List<hudson.model.AbstractProject> getProjectList(String projects, hudson.model.ItemGroup context, hudson.EnvVars env)
public static List<hudson.model.AbstractProject> getStartUpstreams(hudson.model.AbstractProject project)
Copyright © 2016–2020 Diabol AB. All rights reserved.