Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity fails to publish artifacts, but build goes green?

Tags:

teamcity

After moving a few files to new directories, our main TeamCity build started complaining about a missing artifact path("Artifacts path 'some/path/*.tar.gz' not found"), and dependent builds would fail. In my opinion, dependent builds should not even have been started, because the main build failed - but TeamCity reports those builds as successful (green). This doesn't exactly make finding the problem easier, and I would prefer that the build go red if the artifacts cannot be published. How?

like image 906
Enno Avatar asked Oct 31 '22 11:10

Enno


1 Answers

You can add new failure condition when output logs matches regex:

Artifacts path .+ not found
like image 188
kwesolowski Avatar answered Jan 04 '23 15:01

kwesolowski