I'm trying to work with list variables in ZUUL jobs to avoid duplicating definitions of file exclusion patterns. Now I have a job definition that looks like this:
- job:
name: base-job
vars:
my_set_of_files: &myFileSet
- ^.README.*
- ^.*.md
- job:
name: foo
parent: base-job
irrelevant_files: *myFileSet
- job:
name: bar
parent: base-job
irrelevant_files: *myFileSet
- *.xml
But while 'foo' works nicely, I don't seem to be able to add another element for my 'bar' job.
How can I reuse, but slightly modify the list 'myFileSet' in another job config?