I have a jenkins pipeline and I add a function to find some information from a xml file, I then execute this function in the post stage, but even though all steps of the pip