Revert "Revert "Store result directory in build attributes.""

This reverts commit 256566a683e35959684674bcc13743548ebd20e3.

The original CL broken the build because the tests were not updated. This CL reinstates the original CL including the test changes

Change-Id: Ia6a63a28e55832d4d9692d52b2e9ab19eac96d88
10 files changed