Class EiffelEnvironmentContributor
- java.lang.Object
-
- hudson.model.EnvironmentContributor
-
- com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.EiffelEnvironmentContributor
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class EiffelEnvironmentContributor extends EnvironmentContributor
AnEnvironmentContributor
implementation that injects environment variables with the JSON payload of theRun
'sEiffelActivityTriggeredEvent
andEiffelActivityStartedEvent
. Theoretically also theEiffelActivityFinishedEvent
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
Fields Modifier and Type Field Description static String
ACTIVITY_FINISHED
The name of the environment variable containing theEiffelActivityFinishedEvent
.static String
ACTIVITY_STARTED
The name of the environment variable containing theEiffelActivityStartedEvent
.static String
ACTIVITY_TRIGGERED
The name of the environment variable containing theEiffelActivityTriggeredEvent
.
-
Constructor Summary
Constructors Constructor Description EiffelEnvironmentContributor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildEnvironmentFor(Run r, EnvVars envs, TaskListener listener)
-
Methods inherited from class hudson.model.EnvironmentContributor
all, buildEnvironmentFor
-
-
-
-
Field Detail
-
ACTIVITY_FINISHED
public static final String ACTIVITY_FINISHED
The name of the environment variable containing theEiffelActivityFinishedEvent
.- See Also:
- Constant Field Values
-
ACTIVITY_STARTED
public static final String ACTIVITY_STARTED
The name of the environment variable containing theEiffelActivityStartedEvent
.- See Also:
- Constant Field Values
-
ACTIVITY_TRIGGERED
public static final String ACTIVITY_TRIGGERED
The name of the environment variable containing theEiffelActivityTriggeredEvent
.- See Also:
- Constant Field Values
-
-
Method Detail
-
buildEnvironmentFor
public void buildEnvironmentFor(@NonNull Run r, @NonNull EnvVars envs, @NonNull TaskListener listener) throws IOException, InterruptedException
- Overrides:
buildEnvironmentFor
in classEnvironmentContributor
- Throws:
IOException
InterruptedException
-
-