To fix this issue Short answer is YES, but you should use shared libraries.
Look at a simple example written here, or the one where there is whole
declarative pipeline defined and used from a jenkinsfile. I remembered also
a question I posted here on
I wish this help you Disclosure: I've created Java library which deals with
this issue: https://github.com/AutomatedOwl/allure-environment-writerIt
uses TransformerFactory to write the environment.xml to the allure-results
path in any stage of the te
Hope that helps I am considering that the cleanup steps required after each
job is same otherwise you won't be asking the question. The easy way is to
create your own function which builds a given job and does cleanup.