@Extension public class GerritItemListener extends ItemListener
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
GerritItemListener() |
Modifier and Type | Method and Description |
---|---|
void |
onDeleted(Item item)
Called by Jenkins when an item is about to be deleted.
|
void |
onLoaded()
Called by Jenkins when all items are loaded.
|
void |
onLocationChanged(Item item,
String oldFullName,
String newFullName)
trigger get stopped/started when a job is configured, but rename is a special operation
and uses a two phase confirmation, the second one doing the actual rename does not
stop/start the trigger, so we end up with misconfigured EventListener.
|
all, checkBeforeCopy, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCopied, onCreated, onRenamed, onUpdated, register
public void onDeleted(Item item)
onDeleted
in class ItemListener
item
- the item that will be deleted, it is interesting if it is
a subclass of an Jobpublic void onLocationChanged(Item item, String oldFullName, String newFullName)
onLocationChanged
in class ItemListener
item
- an item whose absolute position is now differentoldFullName
- the former Item.getFullName()
newFullName
- the current Item.getFullName()
public void onLoaded()
onLoaded
in class ItemListener
Copyright © 2016–2019. All rights reserved.