Package jenkins.branch
Class BranchNameContributor
java.lang.Object
hudson.model.EnvironmentContributor
jenkins.branch.BranchNameContributor
- All Implemented Interfaces:
ExtensionPoint
Defines the environment variable
BRANCH_NAME
and BRANCH_IS_PRIMARY
for multibranch builds.
Also defines CHANGE_*
variables for ChangeRequestSCMHead
instances and
TAG_*
variables for TagSCMHead
instances.-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.EnvironmentContributor
EnvironmentContributor.EnvVarsHtml
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildEnvironmentFor
(Job j, EnvVars envs, TaskListener listener) Methods inherited from class hudson.model.EnvironmentContributor
all, buildEnvironmentFor
-
Constructor Details
-
BranchNameContributor
public BranchNameContributor()
-
-
Method Details
-
buildEnvironmentFor
public void buildEnvironmentFor(@NonNull Job j, @NonNull EnvVars envs, @NonNull TaskListener listener) throws IOException, InterruptedException - Overrides:
buildEnvironmentFor
in classEnvironmentContributor
- Throws:
IOException
InterruptedException
-