Clean-up not working?

"Clean history | more than 1 day older than the last build"

But I've got builds with artifacts going back well into April. Is this a
bug? Is there a workaround (other than manually deleting the artifacts
off the server's drive - I can do that, but I'd rather not have to do
that too often)?

TeamCity Enterprise Version 3.1.1 (build 6828)

9 comments

If artifacts of these builds were downloaded by other builds then these builds will not be removed until build downloaded artifact is removed.

--
Pavel Sher

0

Pavel Sher (Jetbrains) wrote:

If artifacts of these builds were downloaded by other builds then these builds will not be removed until build downloaded artifact is removed.


Ah ... interesting. We do that a lot - I guess I'll need to chase that down.

Still - my global cleanup rule shouldn't let anything go beyond a week.

0

Pavel Sher (Jetbrains) wrote:

If artifacts of these builds were downloaded by other builds then these builds will not be removed until build downloaded artifact is removed.


You have any log output in TeamCity for the cleanup so I can see what TC
is thinking, to help me track this down?

0

Chris Morris wrote:

Pavel Sher (Jetbrains) wrote:

>> If artifacts of these builds were downloaded by other builds then
>> these builds will not be removed until build downloaded artifact is
>> removed.


You have any log output in TeamCity for the cleanup so I can see what TC
is thinking, to help me track this down?


No, but we can provide small patch that will log all builds that are
"pinned" by artifact dependency.

--
Alexey Gopachenko
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Alexey Gopachenko (JetBrains) wrote:

No, but we can provide small patch that will log all builds that are
"pinned" by artifact dependency.


Sounds good - I'd like that patch.

0

Chris Morris wrote:

Alexey Gopachenko (JetBrains) wrote:

>> No, but we can provide small patch that will log all builds that are
>> "pinned" by artifact dependency.


Sounds good - I'd like that patch.


Ok, looks like there other requests for this...

Watch http://jetbrains.net/tracker/issue/TW-5173: Additional cleanup
logging for analysing what builds is pinned by "artifact dependency"

--
Alexey Gopachenko
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

+1 for this. I just set up T/C at my new job and was wondering why I kept running out of disk space on the machine.

0

Has anything further happened on this to resolve the issue of builds not being cleaned properly?

I currently have a cron job rm -rf'ing everything in the artifacts directory, which sadly means we can't make use of 'pinned' builds :(

0

Mark Derricutt wrote:

Has anything further happened on this to resolve the issue of builds not being cleaned properly?

I currently have a cron job rm -rf'ing everything in the artifacts directory, which sadly means we can't make use of 'pinned' builds :(


4.0 version will have quite different (much extended) notion of
dependencies, and your scenario is expected to work. As for 3.1.x branch
- there will be no further enhancements, only critical bug fixes.

--
Alexey Gopachenko
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.