Class ExecutorFinishMode

  • All Implemented Interfaces:
    AgentOperationMode, AgentOperationModeEx

    public class ExecutorFinishMode
    extends BaseExecutorMode
    An operation mode which helps isolate the execution of all BuildFinishStages into a separate container that runs after the last ExecutorRunnerMode container has finished running during an Executor Mode build.

    When the agent is started in Executor Mode, it never registers on the server. Instead, it receives build parameters via command line arguments and is started via an external orchestrator (e.g. Kubernetes).

    Since:
    2023.09
    See Also:
    BaseExecutorMode
    • Method Detail

      • executeRunnerStages

        public BuildFinishedStatus executeRunnerStages​(@NotNull
                                                       AgentRunningBuildEx build,
                                                       @NotNull
                                                       List<BuildStage> buildStages,
                                                       @NotNull
                                                       AgentOperationModeEx.StagesProcessor stagesProcessor)
        Description copied from interface: AgentOperationModeEx
        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 build
        buildStages - all stages to be executed in a build
        stagesProcessor - functional interface which executes the stages passed to it as argument
        Returns:
        cached BuildFinishedStatus for ExecutorFinishMode; status after executing stages for other modes