adding extra check for invalid jenkins jobs