Or since the semantics of getPreviousResult()  don't explicitly exclude aborted builds (IMO it would make sense to, but maybe we cannot change this anymore because of backwards compatibility) introduce a new method getPreviousCompletedResult o.s.l.t.