Class ArtifactPostBuildCleaner
- java.lang.Object
-
- jetbrains.buildServer.agent.AgentLifeCycleAdapter
-
- jetbrains.buildServer.agent.impl.artifacts.ArtifactPostBuildCleaner
-
- All Implemented Interfaces:
EventListener
,AgentLifeCycleListener
public class ArtifactPostBuildCleaner extends AgentLifeCycleAdapter
Deletes artifact dependencies destination directories after build is finished. Created by Nikita.Skvortsov date: 02.09.2014.
-
-
Field Summary
Fields Modifier and Type Field Description static String
TEAMCITY_ARTIFACTS_CLEAN_AFTER_BUILD
-
Constructor Summary
Constructors Constructor Description ArtifactPostBuildCleaner(EventDispatcher<AgentLifeCycleListener> dispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildFinished(AgentRunningBuild build, BuildFinishedStatus buildStatus)
Called after the buildFinished event is sent to the server Is called afterAgentLifeCycleListener.beforeBuildFinish(BuildFinishedStatus)
New build may be started while processing this event-
Methods inherited from class jetbrains.buildServer.agent.AgentLifeCycleAdapter
afterAgentConfigurationLoaded, afterAtrifactsPublished, agentInitialized, agentShutdown, agentStarted, beforeAgentConfigurationLoaded, beforeBuildFinish, beforeBuildFinish, beforeBuildInterrupted, beforeRunnerStart, beforeRunnerStart, buildFinished, buildStarted, checkoutDirectoryRemoved, checkoutModeResolved, dependenciesDownloaded, messageLogged, messageLogged, personalPatchApplied, personalPatchReverted, pluginsLoaded, preparationFinished, runnerFinished, sourcesUpdated
-
-
-
-
Field Detail
-
TEAMCITY_ARTIFACTS_CLEAN_AFTER_BUILD
public static final String TEAMCITY_ARTIFACTS_CLEAN_AFTER_BUILD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ArtifactPostBuildCleaner
public ArtifactPostBuildCleaner(@NotNull EventDispatcher<AgentLifeCycleListener> dispatcher)
-
-
Method Detail
-
buildFinished
public void buildFinished(@NotNull AgentRunningBuild build, @NotNull BuildFinishedStatus buildStatus)
Description copied from interface:AgentLifeCycleListener
Called after the buildFinished event is sent to the server Is called afterAgentLifeCycleListener.beforeBuildFinish(BuildFinishedStatus)
New build may be started while processing this event- Specified by:
buildFinished
in interfaceAgentLifeCycleListener
- Overrides:
buildFinished
in classAgentLifeCycleAdapter
- Parameters:
build
- buildbuildStatus
- status of the build
-
-