Add teamcity problems when generating files instead of exception
This commit is contained in:
committed by
TeamCityServer
parent
3757bd0c1f
commit
14ead33db6
+1
-3
@@ -20,9 +20,7 @@ fun removeExtraFilesFromPreviousGeneration(previouslyGeneratedFiles: List<File>,
|
||||
|
||||
for (file in previouslyGeneratedFiles) {
|
||||
if (file.absolutePath !in generatedFilesPath) {
|
||||
if (GeneratorsFileUtil.isTeamCityBuild) {
|
||||
GeneratorsFileUtil.assertTeamCityMode()
|
||||
}
|
||||
if (GeneratorsFileUtil.failOnTeamCity("File delete `${file.absolutePath}`")) continue
|
||||
println("Deleted: ${file.absolutePath}")
|
||||
file.delete()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user