public abstract class GlobalVariableSet extends Object implements ExtensionPoint, Iterable<GlobalVariable>
GlobalVariable.ALL
Modifier and Type | Class and Description |
---|---|
static class |
GlobalVariableSet.GlobalVariableProvider
Allow
GlobalVariable s to be defined with Extension , and make them discoverable
via GlobalVariableSet . |
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
GlobalVariableSet() |
Modifier and Type | Method and Description |
---|---|
Collection<GlobalVariable> |
forJob(Job<?,?> job)
Enumerate all global variables from this provider which should be associated with a given job.
|
Collection<GlobalVariable> |
forRun(Run<?,?> run)
Enumerate all global variables from this provider which should be associated with a given build.
|
Iterator<GlobalVariable> |
iterator()
Deprecated.
implement
forRun(hudson.model.Run<?, ?>) instead |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
@Nonnull public Collection<GlobalVariable> forRun(@CheckForNull Run<?,?> run)
run
- a build, which may or may not still be running; or may be left null to look for variables that exist without any context@Nonnull public Collection<GlobalVariable> forJob(@CheckForNull Job<?,?> job)
job
- a job; or may be left null to look for variables that exist without any contextforRun(hudson.model.Run<?, ?>)
on Job.getLastSuccessfulBuild()
@Deprecated public Iterator<GlobalVariable> iterator()
forRun(hudson.model.Run<?, ?>)
insteaditerator
in interface Iterable<GlobalVariable>
Copyright © 2016–2020. All rights reserved.