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.EnvVarsHtml
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the environment variable containing theEiffelActivityFinishedEvent
.static final String
The name of the environment variable containing theEiffelActivityStartedEvent
.static final String
The name of the environment variable containing theEiffelActivityTriggeredEvent
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildEnvironmentFor
(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:
buildEnvironmentFor
in classEnvironmentContributor
- Throws:
IOException
InterruptedException
-