@Extension @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static class GlobalVariableSet.GlobalVariableProvider extends GlobalVariableSet
GlobalVariable
s to be defined with Extension
, and make them discoverable
via GlobalVariableSet
. This simplifies the registration of single global variable.GlobalVariableSet.GlobalVariableProvider
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
GlobalVariableProvider() |
Modifier and Type | Method and Description |
---|---|
Collection<GlobalVariable> |
forRun(Run<?,?> run)
Enumerate all global variables from this provider which should be associated with a given build.
|
forJob, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Collection<GlobalVariable> forRun(Run<?,?> run)
GlobalVariableSet
forRun
in class GlobalVariableSet
run
- a build, which may or may not still be running; or may be left null to look for variables that exist without any contextCopyright © 2016–2020. All rights reserved.