Add functionality to get the last build with a certain validation stamp in Jenkins