Class BuildCacheHolder
- java.lang.Object
-
- jetbrains.buildServer.agent.AgentLifeCycleAdapter
-
- jetbrains.buildServer.agent.impl.cache.BuildCacheHolder
-
- All Implemented Interfaces:
EventListener
,AgentLifeCycleListener
public class BuildCacheHolder extends AgentLifeCycleAdapter
-
-
Constructor Summary
Constructors Constructor Description BuildCacheHolder(EventDispatcher<AgentLifeCycleListener> dispatcher)
-
Method Summary
-
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
-
-
-
-
Constructor Detail
-
BuildCacheHolder
public BuildCacheHolder(@NotNull EventDispatcher<AgentLifeCycleListener> dispatcher)
-
-
Method Detail
-
addCacheForPublishing
public void addCacheForPublishing(@NotNull String cacheName)
-
containsCacheForPublishing
public boolean containsCacheForPublishing(@NotNull String cacheName)
-
addCachePathForPublishing
public void addCachePathForPublishing(@NotNull String cacheName, @NotNull String path)
-
addCachePathsForPublishing
public void addCachePathsForPublishing(@NotNull String cacheName, @NotNull Collection<String> paths)
-
setCacheContentChecksum
public void setCacheContentChecksum(@NotNull String cacheName, @Nullable String checksum)
-
setCacheRulesChecksum
public void setCacheRulesChecksum(@NotNull String cacheName, @NotNull String checksum)
-
setDownloadedCacheContentChecksum
public void setDownloadedCacheContentChecksum(@NotNull String cacheName, @Nullable String checksum)
-
getDownloadedCacheContentChecksum
@Nullable public String getDownloadedCacheContentChecksum(@NotNull String cacheName)
-
setDownloadedCacheRulesChecksum
public void setDownloadedCacheRulesChecksum(@NotNull String cacheName, @NotNull String checksum)
-
getDownloadedCacheRulesChecksum
@Nullable public String getDownloadedCacheRulesChecksum(@NotNull String cacheName)
-
setPublishOnlyChanged
public void setPublishOnlyChanged(@NotNull String name, boolean value)
-
shouldPublishOnlyChanged
public boolean shouldPublishOnlyChanged(@NotNull String cacheName)
-
setCalculateContentChecksum
public void setCalculateContentChecksum(@NotNull String cacheName, boolean value)
-
shouldCalculateContentChecksum
public boolean shouldCalculateContentChecksum(@NotNull String cacheName)
-
markPublishingAsSuccessful
public void markPublishingAsSuccessful(@NotNull String cacheName)
-
markPublishingAsFailed
public void markPublishingAsFailed(@NotNull String cacheName)
-
isPublished
public boolean isPublished(@NotNull String cacheName)
-
getCachePublishingExclusionRules
public Set<String> getCachePublishingExclusionRules(@NotNull String cacheName, @NotNull String cachePath)
-
addCachePublishingExclusionRules
public void addCachePublishingExclusionRules(@NotNull String cacheName, @NotNull String cachePath, @NotNull Collection<String> exclusionRules)
-
getCachePublishingInclusionRules
public Set<String> getCachePublishingInclusionRules(@NotNull String cacheName, @NotNull String cachePath)
-
addCachePublishingInclusionRules
public void addCachePublishingInclusionRules(@NotNull String cacheName, @NotNull String cachePath, @NotNull Collection<String> inclusionRules)
-
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
-
getBuildCacheState
public BuildCacheState getBuildCacheState()
-
updateBuildCacheState
public void updateBuildCacheState(@NotNull BuildCacheState state)
-
-