@Extension(ordinal=-1.7976931348623157E308) public static class Job.LastItemListener extends ItemListener
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
LastItemListener() |
Modifier and Type | Method and Description |
---|---|
void |
onCopied(Item src,
Item item)
Called after a new job is created by copying from an existing job.
|
all, checkBeforeCopy, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCreated, onDeleted, onLoaded, onLocationChanged, onRenamed, onUpdated, register
public void onCopied(Item src, Item item)
ItemListener
ItemListener.onCreated(Item)
.
If you choose to handle this method, think about whether you want to call super.onCopied or not.onCopied
in class ItemListener
src
- The source item that the new one was copied from. Never null.item
- The newly created item. Never null.Copyright © 2004–2021. All rights reserved.