public class PluginTriggerBuildDetectionAction extends Object implements UserInitiatedBuildDetectionAction, ConditionalBuildDetectionAction
Constructor and Description |
---|
PluginTriggerBuildDetectionAction(PlanVcsRevisionHistoryService planVcsRevisionHistoryService,
BuildNumberGeneratorService buildNumberGenerator,
VariableDefinitionManager variableDefinitionManager,
BuildContextBuilderFactory buildContextBuilderFactory,
ImmutableChain chain,
PlanExecutionConfig planExecutionConfig,
TriggerReason triggerReason,
PlanTrigger buildTrigger,
Map<String,String> params,
Map<String,String> variables) |
Modifier and Type | Method and Description |
---|---|
BuildDetectionResult |
createBuildContext()
Actual creation of a
BuildContext . |
PlanExecutionConfig |
getPlanExecutionConfig()
Controls how plan execution would be resumed
If null, normal plan execution would be performed (new build starting on first stage)
|
io.atlassian.fugue.Pair<Boolean,ErrorCollection> |
testIfBuildShouldStart()
Method that should test if chain should be started.
|
public PluginTriggerBuildDetectionAction(@NotNull PlanVcsRevisionHistoryService planVcsRevisionHistoryService, @NotNull BuildNumberGeneratorService buildNumberGenerator, @NotNull VariableDefinitionManager variableDefinitionManager, @NotNull BuildContextBuilderFactory buildContextBuilderFactory, @NotNull ImmutableChain chain, @Nullable PlanExecutionConfig planExecutionConfig, @NotNull TriggerReason triggerReason, @NotNull PlanTrigger buildTrigger, @NotNull Map<String,String> params, @NotNull Map<String,String> variables)
public io.atlassian.fugue.Pair<Boolean,ErrorCollection> testIfBuildShouldStart()
ConditionalBuildDetectionAction
BuildContext
(even though BuildDetectionResult has such field) but it should
perform all time consuming data gathering required to do so in subsequent call to ConditionalBuildDetectionAction.createBuildContext()
testIfBuildShouldStart
in interface ConditionalBuildDetectionAction
@NotNull public BuildDetectionResult createBuildContext()
ConditionalBuildDetectionAction
BuildContext
. Should be as fast as possible.
If previous call to ConditionalBuildDetectionAction.testIfBuildShouldStart()
decided that the
build should start, this method is expected to produce BuildDetectionResult
containing valid BuildContext
createBuildContext
in interface ConditionalBuildDetectionAction
public PlanExecutionConfig getPlanExecutionConfig()
UserInitiatedBuildDetectionAction
getPlanExecutionConfig
in interface UserInitiatedBuildDetectionAction
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.