Why would I have artifacts from older builds in my current build?

I have artifacts from older builds in my newer builds.  My artifacts are set up to grab /Deploy/*.zip.  It seems that TeamCity is reusing the build directory and not cleaning out the old zips.

This doesn't happen on any other builds.  This particular build is sharing source from another project, but has another VCS root for its own project.

1 comment
Comment actions Permalink


If default checkout directory is used, TeamCity is reusing the checkout directories between all the build configurations with the same VCS settings.

Since it is build which is creating the artifacts it is also build's responsibility to clean them up. A good practice is to amend the build script to clean the directory in the start of the build process.


Please sign in to leave a comment.