Are "error action" properties available as VARs?

Greetings!

We are enhancing our logging of build errors. When a build error happens, we want to log the error details, action description, etc. into our perforce system.

I see that in FB server, in the little tray app, when a build fails I can instantly see the 'last error'

Does the FB script itself have easy access to that info?

Ideally FB would expose:

Step # (50 / 233)

Action description

Error block

Thx!

Hi Sam

You can export the log to XM or Text, and specify on the ExportLog Action to export Error Actions only. If you choose XML then you will need to crearte a stylesheet to convert it into the format you want.

HTH

Sounds good… Ideally I would want to export error action directly to a var (can the export output be piped?), but this is a step in the right direction.

Hi Sam,

You’ll need to export the log to a temporary file then use the Read Text File action to read the contents of the log to a variable.

Regards,
Paul.