add error check to resolveFileName to debug jenkins