org.jvnet.hudson.plugins.exclusion
Class IdAllocator
java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>
hudson.tasks.BuildWrapper
org.jvnet.hudson.plugins.exclusion.IdAllocator
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.BuildWrapper>
public class IdAllocator
- extends hudson.tasks.BuildWrapper
first author Kohsuke Kawaguchi
fork by Anthony Roux
| Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper |
hudson.tasks.BuildWrapper.Environment |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Methods inherited from class hudson.tasks.BuildWrapper |
all, decorateLauncher, decorateLogger, getProjectAction, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, setUp |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listRessources
public static List<RessourcesMonitor> listRessources
DESCRIPTOR
@Extension
public static final IdAllocator.DescriptorImpl DESCRIPTOR
IdAllocator
public IdAllocator(IdType[] ids)
setUp
public hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
- Overrides:
setUp in class hudson.tasks.BuildWrapper
- Throws:
IOException
InterruptedException
getIds
public IdType[] getIds()
setIds
public void setIds(IdType[] ids)
getListRessources
public static List<RessourcesMonitor> getListRessources()
setListRessources
public static void setListRessources(List<RessourcesMonitor> list)
updateList
public static void updateList(String oldProjecName,
String newProjectName)
deleteList
public static void deleteList(String ProjectName)
- Cette methode permet de supprimer toutes les ressources d'un projet (Job)
- Parameters:
ProjectName - : Nom du projet
updateBuild
public static void updateBuild(String ProjectName,
String resourceName,
boolean build)
- Cette m�thode change l'�tat d'une ressource (en cours d'utilisation ou non)
- Parameters:
ProjectName - : Nom du projetresourceName - : Resource � modifiebuild - : etat de la ressource (true = en cours d'utilisation)
getDescriptor
public hudson.model.Descriptor<hudson.tasks.BuildWrapper> getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.BuildWrapper>- Overrides:
getDescriptor in class hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>
Copyright © 2004-2012. All Rights Reserved.