Class EiffelEnvironmentContributor
java.lang.Object
hudson.model.EnvironmentContributor
com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.EiffelEnvironmentContributor
- All Implemented Interfaces:
ExtensionPoint
An
EnvironmentContributor implementation that injects environment variables with the JSON payload of
the Run's EiffelActivityTriggeredEvent
and EiffelActivityStartedEvent. Theoretically
also the EiffelActivityFinishedEvent if this
class for some reason is used for a completed Run.-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.EnvironmentContributor
EnvironmentContributor.EnvVarsHtmlNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the environment variable containing theEiffelActivityFinishedEvent.static final StringThe name of the environment variable containing theEiffelActivityStartedEvent.static final StringThe name of the environment variable containing theEiffelActivityTriggeredEvent. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildEnvironmentFor(Run r, EnvVars envs, TaskListener listener) Methods inherited from class hudson.model.EnvironmentContributor
all, buildEnvironmentFor
-
Field Details
-
ACTIVITY_FINISHED
The name of the environment variable containing theEiffelActivityFinishedEvent.- See Also:
-
ACTIVITY_STARTED
The name of the environment variable containing theEiffelActivityStartedEvent.- See Also:
-
ACTIVITY_TRIGGERED
The name of the environment variable containing theEiffelActivityTriggeredEvent.- See Also:
-
-
Constructor Details
-
EiffelEnvironmentContributor
public EiffelEnvironmentContributor()
-
-
Method Details
-
buildEnvironmentFor
public void buildEnvironmentFor(@NonNull Run r, @NonNull EnvVars envs, @NonNull TaskListener listener) throws IOException, InterruptedException - Overrides:
buildEnvironmentForin classEnvironmentContributor- Throws:
IOExceptionInterruptedException
-