Package jetbrains.buildServer.agent
Interface AgentOperationModeEx
-
- All Superinterfaces:
AgentOperationMode
- All Known Implementing Classes:
BaseExecutorMode
,ExecutorFinishMode
,ExecutorRunnerMode
,ExecutorStartMode
,ProbeMode
,ServiceMode
public interface AgentOperationModeEx extends AgentOperationMode
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AgentOperationModeEx.StagesProcessor
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
beforeAgentStart()
default BuildFinishedStatus
executeRunnerStages(AgentRunningBuildEx build, List<BuildStage> buildStages, AgentOperationModeEx.StagesProcessor stagesProcessor)
Executes any miscellaneous steps that need to be conducted by the calling operation mode before its BuildStages are executed (if such exist), iterates through passed buildStages to select those to be executed by the operation mode, and executes them.default void
onAgentStart()
default void
onBuildFinish(AgentRunningBuild build, BuildFinishedStatus buildStatus)
default boolean
onRunnersFinished(AgentRunningBuild build, BuildFinishedStatus buildStatus)
default boolean
shouldCleanTempDirectories()
Determines whether temporary directories should be cleaned when the agent starts.-
Methods inherited from interface jetbrains.buildServer.agent.AgentOperationMode
isRegistrationOnServerSupported
-
-
-
-
Method Detail
-
beforeAgentStart
default void beforeAgentStart()
-
onAgentStart
default void onAgentStart()
-
onRunnersFinished
default boolean onRunnersFinished(@NotNull AgentRunningBuild build, @NotNull BuildFinishedStatus buildStatus)
- Returns:
- true if build can be finished
-
shouldCleanTempDirectories
default boolean shouldCleanTempDirectories()
Determines whether temporary directories should be cleaned when the agent starts. This method is used to indicate if any temporary directories of the agent used during the execution should be cleaned on start-up.- Returns:
- true if the temporary directories should be cleaned up; false otherwise
-
onBuildFinish
default void onBuildFinish(@NotNull AgentRunningBuild build, @NotNull BuildFinishedStatus buildStatus)
-
executeRunnerStages
default BuildFinishedStatus executeRunnerStages(@NotNull AgentRunningBuildEx build, @NotNull List<BuildStage> buildStages, @NotNull AgentOperationModeEx.StagesProcessor stagesProcessor)
Executes any miscellaneous steps that need to be conducted by the calling operation mode before its BuildStages are executed (if such exist), iterates through passed buildStages to select those to be executed by the operation mode, and executes them. For traditional (i.e., non-agentless) builds, the function executes all stages.- Parameters:
build
- current buildbuildStages
- all stages to be executed in a buildstagesProcessor
- functional interface which executes the stages passed to it as argument- Returns:
- cached BuildFinishedStatus for ExecutorFinishMode; status after executing stages for other modes
-
-