Class PluginTaskResultsService
java.lang.Object
com.xebialabs.xlrelease.domain.tasks.plugin.PluginTaskResultsService
Turns one plugin task execution's results into
Changes.
The plugin-task counterpart of ScriptResultsService, and deliberately not
part of it: a plugin task has no script, so nothing here belongs in a class named for scripts, and
ScalaExecutionService already knows it is holding a PluginTask by the time it gets
here - routing through a shared entry point would only re-discover that with an instanceof.
The two services share no logic beyond a handful of platform calls for pushing mapped output values
into release variables; that is not enough to justify coupling them behind a common abstraction.
-
Constructor Summary
ConstructorsConstructorDescriptionPluginTaskResultsService(com.xebialabs.xlrelease.service.CiIdService ciIdService) -
Method Summary
Modifier and TypeMethodDescriptioncom.xebialabs.xlrelease.domain.ChangesresolveResults(com.xebialabs.xlrelease.domain.PluginTask task, PluginTaskResults results, boolean clearVariableMappings) Applies output properties, status line and suspension state, and - for a timer-flavoured suspension - adds the post-action that re-queues the task.
-
Constructor Details
-
PluginTaskResultsService
public PluginTaskResultsService(com.xebialabs.xlrelease.service.CiIdService ciIdService)
-
-
Method Details
-
resolveResults
public com.xebialabs.xlrelease.domain.Changes resolveResults(com.xebialabs.xlrelease.domain.PluginTask task, PluginTaskResults results, boolean clearVariableMappings) Applies output properties, status line and suspension state, and - for a timer-flavoured suspension - adds the post-action that re-queues the task.- Parameters:
clearVariableMappings- clear output-property variable mappings, which is correct only once the task is in a final state; a suspended or failing-but-retryable task must keep them for its next execution
-