Groovy Task: set status or log more?

I have a working Groovy script which returns output to the Task History:
“success” or “failure” which can be used in other tasks.

However, I’d like to output some more details, for debugging and logging purposes.

- Is it possible to change the status? Instead of FINISHED_OK or ERROR, can I use and set custom states?
- Is it possible to log a more detailed output somewhere else?

Unfortunately I can’t put more debugging output into the result description field.
(Well, I *can* but it’s not what we want)

Hi henjo,

Regarding status: It is not possible to create own status as it is internal filed of Server.

Regarding extended status: You may return string from Groovy script and that value is then visible in Task History - but you probably know that. Other possibility is to open file in Groovy and log into it.

If I did not understand your question then please try to explain how and where should be detailed log stored/displayed. As separate column in Task History?

I hope this helps.