Skip to content

Commit 8c0ce2a

Browse files
committed
Clean the tools directory on teardown
1 parent 0a58232 commit 8c0ce2a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build.cake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,18 @@ Teardown<BuildParameters>((context, parameters) =>
104104
{
105105
Information("Starting Teardown...");
106106

107-
Information("Repository info : IsMainRepo {0}, IsMainBranch {1}, IsTagged: {2}, IsPullRequest: {3}",
107+
Information("Repository info: IsMainRepo {0}, IsMainBranch {1}, IsTagged: {2}, IsPullRequest: {3}",
108108
parameters.IsMainRepo,
109109
parameters.IsMainBranch,
110110
parameters.IsTagged,
111111
parameters.IsPullRequest);
112112

113+
var toolsPath = context.Configuration.GetToolPath(context.Environment.WorkingDirectory, context.Environment);
114+
115+
Information("Tools Path: {0}", toolsPath);
116+
117+
CleanDirectories(toolsPath);
118+
113119
Information("Finished running tasks.");
114120
}
115121
catch (Exception exception)

0 commit comments

Comments
 (0)