In our pipeline we run number of child jobs (number can differ,buildID is not consecutive,other jobs can run child jobs as well). in pipeline script we hold the BuildID number as value of map,keys are name of parallel group execution (not relevant.), map names is branches_numbers, it holds ['branch_1']='100',['branch_2']='104' etc.
While iterating over such map we got NotSerializableException when using map values as Build ID.
Bellow are examples:
Exeception at the bottom of issue.
Jenkins 2.48, CopyArtifactPlugin: 1.38.1
This is Trivia as I don't know if this issue is inside CopyArtifact or in Groovy/Pipeline.
Please change it if verified.