• Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Maven
    • None
    • 0
    • 2
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem Definition

      If Repository Isolation is enabled, each local agents will have individual m2 cache directory:

      $BAMBOO_HOME/.m2/AGENT-${bamboo.agentId}
      

      However, the total disk space used will be a lot.

      Suggested Solution

      It would be great if Bamboo can monitor the disk usage and updated date of the m2 cache and have the option to select and delete a specific cache directory, just like the Git cache

      Why this is important

      To reduce the disk space usage

            [BAM-18153] Ability to delete m2 cache for each local agents

            I've setup the plugin and run some build plan.
            It seems it only cleans the snapshots from the bamboo's user home repository (i.e. Deleting 0 snapshot folders from /atlassianapp/.m2/repository) but not the agent isolation's one (i.e. /atlassiandata/bamboo/.m2/AGENT-104103937/repository).

            So it's actually a good plugin, but useless in case of agent isolation.

            Massimo Corà added a comment - I've setup the plugin and run some build plan. It seems it only cleans the snapshots from the bamboo's user home repository (i.e. Deleting 0 snapshot folders from /atlassianapp/.m2/repository) but not the agent isolation's one (i.e. /atlassiandata/bamboo/.m2/AGENT-104103937/repository). So it's actually a good plugin, but useless in case of agent isolation.

            Alexey Chystoprudov added a comment - There's the plugin at Marketplace to solve this issue: https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugin.bamboo-predator-plugin

              Unassigned Unassigned
              klfoong Foong (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: