Clearing Artifacts

Hi,
I'm very new to TC. How can clear 'Artifact path' folder on the agent right after the run is over and artifacts are posted on TC?
I'm using ANT for build.

Thanks

Edited by: Kaissa on May 30, 2008 3:41 AM

Edited by: Kaissa on May 30, 2008 3:47 AM

4 comments

You can clean artifact paths before build. This is more robust solution because your build may be killed or stopped and may not reach the point when it cleans artifacts. So it is better to clean them before.

--
Pavel Sher

0

Thanks for the reply.
I do clear artifact path before each run....My problem is we have several builds pointing at the same artifact paths, and each build has dependent artifacts within TC.

Here is scenario: Build A is done and all results in Artifact Path, Build B is about to start but fails to start because it's looking for dependent artifacts of other build and in case it's not there, build fails but still gathering results from Artifact Path from the previous run. To prevent it, I'm looking for solution to clear Artifact Path after the build.

Hope it is not very confusing.

Thanks.

0

Have you tried to turn ON checkbox "Clean directory before downloading artifacts" on the build configuration artifact dependencies page?

--
Pavel Sher

Edited by: Pavel Sher (Jetbrains) on Jun 3, 2008 2:37 PM

0

Yes, I did. But in that case it deletes all files where build.xml is located. Would be nice to have option to clear only Artifacts Path

0

Please sign in to leave a comment.