public class PluginTriggerBuildDetectionAction extends Object implements UserInitiatedBuildDetectionAction, ConditionalBuildDetectionAction
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull 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
@NotNull PlanVcsRevisionHistoryService planVcsRevisionHistoryService,
@NotNull
@NotNull BuildNumberGeneratorService buildNumberGenerator,
@NotNull
@NotNull VariableDefinitionManager variableDefinitionManager,
@NotNull
@NotNull BuildContextBuilderFactory buildContextBuilderFactory,
@NotNull
@NotNull ImmutableChain chain,
@Nullable
@Nullable PlanExecutionConfig planExecutionConfig,
@NotNull
@NotNull TriggerReason triggerReason,
@NotNull
@NotNull PlanTrigger buildTrigger,
@NotNull
@NotNull Map<String,String> params,
@NotNull
@NotNull Map<String,String> variables)
public io.atlassian.fugue.Pair<Boolean,ErrorCollection> testIfBuildShouldStart()
ConditionalBuildDetectionActionBuildContext (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 @NotNull BuildDetectionResult createBuildContext()
ConditionalBuildDetectionActionBuildContext. 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 BuildContextcreateBuildContext in interface ConditionalBuildDetectionActionpublic PlanExecutionConfig getPlanExecutionConfig()
UserInitiatedBuildDetectionActiongetPlanExecutionConfig in interface UserInitiatedBuildDetectionActionCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.