GithubHelp home page GithubHelp logo

jetbrains / teamcity-caches-cleanup-plugin Goto Github PK

View Code? Open in Web Editor NEW
12.0 16.0 3.0 69 KB

Clean up Maven and Gradle caches to free TeamCity Agent disk space

License: Apache License 2.0

Kotlin 100.00%
teamcity

teamcity-caches-cleanup-plugin's People

Contributors

burnasheva avatar dead-off avatar dmitry-treskunov avatar nskvortsov avatar orybak avatar vladrassokhin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

teamcity-caches-cleanup-plugin's Issues

In TeamCity 2018.1 it's impossible to resolve artifact dependency into `system.agent.persistent.cache`

Reason: TC blocks access to Build Agent files, except temp and work directories.
Since system.agent.persistent.cache resides in agent system directory, it's blacklisted.
Builds would fail with messages like:

Failed to resolve artifact dependency <Project / Configuration, build #42 [id 42]>: downloading files to C:\BuildAgent\ is prohibited (jetbrains.buildServer.artifacts.impl.SourcePathAwareResolvingFailedException)

TC10 adaption of pom.xml

Hi,

I had some issues on the dependencies when building the project. Maven could not resolve them. And they were still on TC9 libs. Not the TC10 libs. I've modified the pom and now it "mvn package" is working.

Here is my modified pom. I couldn't make a branch or pull request, because I'm wasnt allowed to.

Greetings from Switzerland

caches-cleanup-plugin.pom

4.0.0 github.nskvortsov caches-cleanup-plugin 1.0-SNAPSHOT pom 1.0.3 10.0 JetBrains http://download.jetbrains.com/teamcity-repository/ JetBrains http://download.jetbrains.com/teamcity-repository/ ${project.basedir}/src/main/kotlin ${project.basedir}/src/test/kotlin kotlin-maven-plugin org.jetbrains.kotlin ${kotlin.version}
    <executions>
      <execution>
        <id>compile</id>
        <phase>process-sources</phase>
        <goals> <goal>compile</goal> </goals>
      </execution>

      <execution>
        <id>test-compile</id>
        <phase>process-test-sources</phase>
        <goals> <goal>test-compile</goal> </goals>
      </execution>
    </executions>
  </plugin>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.1</version>
    <configuration>
      <source>1.6</source>
      <target>1.6</target>
    </configuration>
  </plugin>
  <plugin>
    <groupId>org.jetbrains.teamcity</groupId>
    <artifactId>teamcity-sdk-maven-plugin</artifactId>
    <version>0.1</version>
    <configuration>
      <!-- <teamcityDir>/path/to/tc/distro</teamcityDir> -->
    </configuration>
  </plugin>
</plugins>
caches-cleanup-plugin-server caches-cleanup-plugin-agent caches-cleanup-plugin-common build

General questions about the plugin functionality

It is not clear to me how this plugin works/integrates into the builds/infrastructure, as there are no screenshots for how this plugin would be configured.
What we would like is something that performs a periodic cleanup, where the periodicity can be set by us for various agents individually. What we would not like is something that is executed as part of a pre/post step for each build. That would slow down all builds significantly. An added bonus would be if from the local maven repository one could delete only a configurable set of groupIds (e.g. artifacts related to our project..), instead of the entire maven repository.

Any information on the topics above is more than welcomed :)

Thx a lot!

Docker caches cleanup support

Hi and thank you for your plugin!
I was wondering if you have any plans on adding support for Docker clean up, or maybe I have overseen the existing functionality?

I think Docker, unlike Maven or npm, requires a bit more graceful cleanup (e.g. with docker system prune ), and not just removal of some directories.

It would be a great feature to support Docker as well since now we have to do this manually and free up tens of gigabytes each time.

Clean based on space requirements across multiple drives?

Is it possible to use this plugin to clean up multiple drives on Windows agents?
Our use case is that we have an "OS" drive and an "Agent" drive C: and D: respectively.
It appears that the plugin is only triggered when the D: drive needs free space cleared but not for C:.
We have caches from NuGet, Conda, npm, etc. filling up on the C: drive but the agent is unaware of this since it is located on the D: drive.
Is this something that would need to fundamentally change in the agent code or can it be added in this plugin?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.