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)
|
com.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 com.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 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 © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.