Package jenkins.branch
Class MultiBranchProject.CopyItemVeto
- java.lang.Object
-
- hudson.model.listeners.ItemListener
-
- jenkins.branch.MultiBranchProject.CopyItemVeto
-
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- MultiBranchProject<P extends Job<P,R> & TopLevelItem,R extends Run<P,R>>
@Extension public static class MultiBranchProject.CopyItemVeto extends ItemListener
Veto attempts to copy branch projects outside of their multibranch container. Only works on Jenkins core versions with JENKINS-34691 merged.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description CopyItemVeto()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCheckCopy(Item item, ItemGroup parent)
-
Methods inherited from class hudson.model.listeners.ItemListener
all, checkBeforeCopy, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCopied, onCreated, onDeleted, onLoaded, onLocationChanged, onRenamed, onUpdated, register
-
-
-
-
Method Detail
-
onCheckCopy
public void onCheckCopy(Item item, ItemGroup parent) throws Failure
- Overrides:
onCheckCopy
in classItemListener
- Throws:
Failure
-
-