I have a 3 stages in pipeline, each job in all 3 stages are creating a xml data files. These jobs which runs in parallel.
I want to merge all xml data file in 4th stage. Below is my yml code
stages:
- deploy
- test
- execute
- artifact
script:
- XYZ
artifacts:
name: datafile.xml
paths:
- data/
Problem: how i can collect all xmls from previous jobs to merge it? Files names are unique.

Here is a
.gitlab-ci.ymlfile that collects artifacts into a final artifact (takes a file generated by earlier stages, and puts them all together).The key is the needs attribute which takes the artifacts from the earlier jobs (with
artifacts: true).