public class ProjectUtils
extends java.lang.Object
Constructor and Description |
---|
ProjectUtils() |
Modifier and Type | Method and Description |
---|---|
static hudson.model.AbstractProject |
findProject(org.kohsuke.stapler.StaplerRequest request) |
static hudson.model.AbstractProject |
findProject(java.lang.String fullName)
Get a project by its fullName (including any folder structure if present).
|
static java.util.Collection<hudson.model.AbstractProject> |
findProjectsWithProperty(java.lang.Class<? extends hudson.model.JobProperty<?>> property) |
static <J extends hudson.model.JobProperty> |
getProperty(java.lang.Object item,
java.lang.Class<J> propertyType) |
static void |
updateProjectWithXmlSource(hudson.model.AbstractItem project,
java.nio.file.Path source) |
public static java.util.Collection<hudson.model.AbstractProject> findProjectsWithProperty(java.lang.Class<? extends hudson.model.JobProperty<?>> property)
public static hudson.model.AbstractProject findProject(org.kohsuke.stapler.StaplerRequest request)
public static hudson.model.AbstractProject findProject(java.lang.String fullName)
public static void updateProjectWithXmlSource(hudson.model.AbstractItem project, java.nio.file.Path source) throws java.io.IOException
java.io.IOException
public static <J extends hudson.model.JobProperty> J getProperty(java.lang.Object item, java.lang.Class<J> propertyType)
item
- A job of some kindpropertyType
- The property to look for