Provide env vars detailing triggered builds.

Fixes JENKINS-17535