@Extension
public class GerritItemListener
extends hudson.model.listeners.ItemListener
Constructor and Description |
---|
GerritItemListener() |
Modifier and Type | Method and Description |
---|---|
void |
onDeleted(hudson.model.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(hudson.model.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.
|
public void onDeleted(hudson.model.Item item)
onDeleted
in class hudson.model.listeners.ItemListener
item
- the item that will be deleted, it is interesting if it is
a subclass of an Jobpublic void onLocationChanged(hudson.model.Item item, String oldFullName, String newFullName)
onLocationChanged
in class hudson.model.listeners.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 hudson.model.listeners.ItemListener
Copyright © 2016–2017. All rights reserved.