Add ability to run a script if a build failed

Change-Id: I4a74b5747226b993bdb01c6f3e8c74b5b90bad3e
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>