I have a Declarative Pipeline where in one stage I build my code (jar file). In a following stage I need to to access the same jar file (for packaging purposes). currently I see that the first stage is working within a folder named after the job name (myjob).
Following stages in the same pipeline have different working directories (myjob@2 or myjob@2@tmp).
Is there a way to access/copy files produced by one stage in another stage (within the same pipeline) ?