@Extension
public class ItemChangeListener
extends hudson.model.listeners.ItemListener
| Constructor and Description |
|---|
ItemChangeListener() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.ExtensionList<ItemChangeListener> |
getInstance()
Returns a registered
ItemChangeListener instance. |
void |
onCopied(hudson.model.Item src,
hudson.model.Item item)
Fired when a new job is created by copying from an existing job
|
void |
onCreated(hudson.model.Item item)
Fired when a new job is created and added to Jenkins, before the initial configuration page is provided.
|
void |
onDeleted(hudson.model.Item item)
Fired right before a job is going to be deleted
|
void |
onUpdated(hudson.model.Item item)
Fired when a job has its configuration updated.
|
public void onCreated(@Nonnull hudson.model.Item item)
onCreated in class hudson.model.listeners.ItemListeneritem - is a job that is createdpublic void onCopied(hudson.model.Item src,
hudson.model.Item item)
onCopied in class hudson.model.listeners.ItemListenersrc - is the source item that the new one was copied from.item - is the newly created item.public void onDeleted(hudson.model.Item item)
onDeleted in class hudson.model.listeners.ItemListeneritem - is item to be deleted.public void onUpdated(hudson.model.Item item)
onUpdated in class hudson.model.listeners.ItemListeneritem - is job being updated.public static hudson.ExtensionList<ItemChangeListener> getInstance()
ItemChangeListener instance.Copyright © 2016–2020. All rights reserved.