We use Perforce Ant Tasks in our build.xml.
Sometimes these tasks don't fail in Ant, but actually don't do their job:
: ... - can't edit exclusive file already opened
: ..- also opened by ...
: copy (<1s)
: Copying 1 file to C:\TeamCity\buildAgent\work\...
: p4submit (<1s)
: Submitting change 891922.
: No files to submit.
In the example these was an error with getting access to the file, which leads to a problem with submitting it.
So this build didn't failed, but Perforce work wasn't done as well.
Is there a way to fail this build in TeamCity by checking Ant output for fixed text, i.e. "No files to submit"?
I mean if there is text containing pre-configured patterns then build is failed.
Edited by: nouveau on Jun 18, 2008 5:26 PM