jenkins-job.sh: Correctly report failed build and time spent building it

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>