Is it possible for TeamCity to crash if no artifacts are found? I mean without writing any special script, i.e. Does TeamCity have such built-in features?
No, you will have to implement this functionality in your build script.
i.e. if you are using MSBUILD .. after everything is done, run the following command:
<Error Condition="!Exists('someArtifact.txt')" Text="Error!!! Artifact doesn't exist" />
In TeamCity 7.x, you can catch this using the build failure condition. You can add a condition to your build configuration to discard the specific text found in the build log.
For example, a text failure:
Artifact path file.txt not found
, , .
Source: https://habr.com/ru/post/1770373/More articles:How to use different resource files of a specific culture in ASP.NET - c #Как получить элементы с идентификатором, содержащим определенный текст? (Опытный образец) - javascriptsproutcore & rails: where does the sproutcore application work in the rails directory structure? - ruby-on-railsСоздание папки с текущим временем как имя - windowsSystem.Windows.Browser on Windows Phone - browserАвтоматизация на стороне сервера Office 2010 в среде Windows HPC Server 2008 R2 - ms-officeWhat to use for datagrid with a lot of data? - xmlImplement real-time collaboration on a page? - ajaxHow can I get Hudson to automatically create and install release artifacts, not just snapshots? - gitDo I need Excel to be installed for spreadsheet queries using the OleDB provider? - c #All Articles