Add method to retrieve last failed build