public class ProjectUtils extends 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(String fullName)
Get a project by its fullName (including any folder structure if present).
|
static Collection<hudson.model.AbstractProject> |
findProjectsWithProperty(Class<? extends hudson.model.JobProperty<?>> property) |
static List<hudson.triggers.Trigger<?>> |
getTriggers(hudson.model.AbstractProject implementationProject) |
static void |
silentSave(hudson.model.AbstractProject project)
Silently saves the project without triggering any save events.
|
static hudson.model.AbstractProject |
updateProjectWithXmlSource(hudson.model.AbstractProject project,
Source source)
Copied from
AbstractItem.updateByXml(javax.xml.transform.Source), removing the save event and
returning the project after the update. |
public static Collection<hudson.model.AbstractProject> findProjectsWithProperty(Class<? extends hudson.model.JobProperty<?>> property)
public static hudson.model.AbstractProject findProject(org.kohsuke.stapler.StaplerRequest request)
public static hudson.model.AbstractProject findProject(String fullName)
public static void silentSave(hudson.model.AbstractProject project)
throws IOException
IOExceptionpublic static hudson.model.AbstractProject updateProjectWithXmlSource(hudson.model.AbstractProject project,
Source source)
throws IOException
AbstractItem.updateByXml(javax.xml.transform.Source), removing the save event and
returning the project after the update.IOExceptionpublic static List<hudson.triggers.Trigger<?>> getTriggers(hudson.model.AbstractProject implementationProject)
Copyright © 2004-2015. All Rights Reserved.