Recently I lost a lot of time on this. Hence I want to share a working solution, even if i cannot take the time to detail the issue. I'm taking about writing reusable code for Jenkinsfiles : https://jenkins.io/doc/book/pipeline/shared-libraries/ One cannot simply use Groovy HTTPBuilder, because…