public final class CounterManager extends Object
A manager process the results of the jobs, the result of the phase and transforms the counters and their values in the data structure needed by the Multijob.injectEnvVars.
These are the variables that will be injected:
The variables related to the last phase execution:
The variables related to the phase name (in the following example, TRALL is the phase name):
The variables related to current multijob execution:
Modifier and Type | Field and Description |
---|---|
static String |
PHASE_RESULT
Name of the key that will be used to store, as an environment property, the result of the phase.
|
Constructor and Description |
---|
CounterManager() |
Modifier and Type | Method and Description |
---|---|
void |
process(hudson.model.Result result)
Process the result of the job.
|
void |
processAborted()
A convenient way to process an aborted job.
|
void |
processSkipped()
A convenient way to process a skipped job.
|
Map<String,String> |
toMap()
Returns a map with the variables and their values, to be injected.
|
String |
toString() |
public static final String PHASE_RESULT
We compute the result of the phase as the worse of the results of all triggered jobs.
public void process(hudson.model.Result result)
The processing of the result of the job is an operation that involucres two steps:
phaseResult
variable if the result if worse than current.result
- the result of the job to be processed.public void processSkipped()
public void processAborted()
public Map<String,String> toMap()
Copyright © 2016–2020. All rights reserved.