How do Gitlab CI behaves, if there are 2 jobs that have artifacts in the same path, and both jobs are the dependency of the same job?
job1:
stage: stage1
artifacts:
paths:
- samedir
job2:
stage: stage1
artifacts:
paths:
- samedir
job3:
stage: stage2
dependencies:
- job1
- job2
I couldn't find the example in gitlab docs or the expected behaviour.
Is the behaviour deterministic? If the job1 and job2 puts the same file in the samedir, will the job2's artifact overwrite that from job1 because of the order they are defined in the dependencies?