Interface AgentOperationModeEx

    • Method Detail

      • beforeAgentStart

        default void beforeAgentStart()
      • onAgentStart

        default void onAgentStart()
      • 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
      • 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 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