Jenkins 16662 - add build Results as environment variables

Hi,

This is to add TRIGGERED_BUILD_RESULT as an environment variable in a similar way that the TRIGGERED_BUILD_NUMBER is added.

Updated based feedback from cjo9900, now based on changes in pull 27.

thanks
Geoff