Okay. I'm really confused. I had a build working fine and suddenly it stopped working and gives the error in the subject of this msg. The build works fine on the command line on the build agent. But the build fails every time it is run through TeamCity.
The problem seemed to me to be that the "p4" command could not be found.
TeamCity (2.1.1) Server is a Red Hat EL3 box.
The only build agent that runs the problem build is a Windows XP desktop.
Perforce 2005.2 is the SCM.
The build does not automatically do a checkout.
The ant build.xml runs a p4sync task before the build.
The full error is:
: exec (<1s)
: exec returned: 1
: The following error occurred while executing this line: C:\workspaces\services\build\build.xml:374: exec returned: 1
The build target that seems to fail is this:
BTW, another oddity that started happening was that the Perforce user it wants to use is "SYSTEM" which doesn't exist rather than the user logged into the build agent which does exist as a Perforce user.
Any help would be welcome.