How to delete all build artifacts in TeamCity?

Sam Rueby

I noticed TeamCity automatically stores artifacts. We do not need TeamCity to store any artifacts.

How do you delete all build artifacts stored in TeamCity?

Senior Pomidor

First, you need to configure a default clean-up rule. By default, everything is kept forever. Because of this, clean-up doesn't do much.

  1. Go to the settings
  2. Click on Clean-up Rules in the left navigation.
  3. You may see multiple "build configuration or template", for each:
  4. Click Edit.
  5. Under "Clean Artifacts", choose custom policy.
  6. Choose 1 days since last build or "1th" successful build, whichever makes the most sense to you.

All subprojects under will inherit this configuration. After this is configured, go to Administration > Server Administration > Clean-up Settings

The Previous clean-up section of the server clean-up settings enables you to:

  • review the information on the previous server clean-up date and duration helping you decide whether to launch the clean-up process at a given moment
  • run clean-up manually using the Start clean-up now button

During clean-up, TeamCity reports the progress. If you need, you can stop the clean-up process and the remaining data will be removed during the next clean-up.

Just press the button Start clean-up now

enter image description here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Delete TeamCity Build Logs

TeamCity guest access without artifacts / build logs?

how to print all the maven artifacts list which will be generated during the build?

How to publish custom artifacts to Artifactory from TeamCity?

TeamCity: Disable build trigger for all TeamCity projects

TeamCity Build Artifacts - Prevent overwriting of identically named files

Is it possible to output and rename build artifacts from the TeamCity checkout directory (that are not archives)?

Teamcity build all svn branches

How to delete artifacts from Kubeflow?

How do I programmatically find and delete a container image built through Google Cloud Build with the googleapis Artifacts API?

Assemble all gradle build artifacts into a single directory

TeamCity Agent artifacts cache issue: agent accumulates artifacts from all prev builds

How to clean an ASP.NET MVC project of all build artifacts to send to git repository?

What exactly are teamcity artifacts?

Accessing hidden teamcity artifacts

How to archive a build configuration in Teamcity?

How to store jenkins build output with artifacts?

How build artifacts are managed in Azure DevOps pipeline?

How to solve Jitpack "ERROR: No build artifacts found"?

TeamCity Build Agent Shows All Build Steps Incompatible

Artifactory delete all artifacts older than 6 months

Concourse CI - Build Artifacts inside source, pass all to next task

How to backup all Nexus 3 artifacts?

How to set build agent priority in TeamCity?

How to run a build step conditionally in TeamCity

How to revert changes to a build configuration in TeamCity

How to enable teamcity agent for Build Tools 2013

How to zero pad the build counter in TeamCity

How to order the display of build configurations in TeamCity?