i have forged the below pipeline workflow. The intent is to generate the XML file as a part of the pipeline and it will be used in the subsequent stages of the pipeline. I can invoke the pipeline successfully, but i dont find the XML generated in the workspace. I would expect the "file.XML" generated in the workspace. As you can see, i am not full fledge in groovy yet.
How can i make sure that the file.xml is created in the workspace? If i execute the script ( without the class generateXML() )in a groovyconsole it works.
Any idea on how to pass the values of the variable before triggering the job?