@Internal public interface ConditionalBuildDetectionAction extends BuildDetectionAction
BuildDetectionAction
interface that indicates that the action makes a decision if the build
should start.Modifier and Type | Method and Description |
---|---|
BuildDetectionResult |
createBuildContext()
Actual creation of a
BuildContext . |
io.atlassian.fugue.Pair<Boolean,ErrorCollection> |
testIfBuildShouldStart()
Method that should test if chain should be started.
|
io.atlassian.fugue.Pair<Boolean,ErrorCollection> testIfBuildShouldStart()
BuildContext
(even though BuildDetectionResult has such field) but it should
perform all time consuming data gathering required to do so in subsequent call to createBuildContext()
BuildDetectionResult createBuildContext()
BuildContext
. Should be as fast as possible.
If previous call to testIfBuildShouldStart()
decided that the
build should start, this method is expected to produce BuildDetectionResult
containing valid BuildContext
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.