Fix mixed canonical/non-canonical project merge
When defining multiple project stanzas for the same project the
resulting job graphs get merged. This should also work if they are
given as a mixture of canonical and non-canonical project names like
the following stanza.
- project:
name: review.example.com/org/project1
check:
jobs:
- common-config-job
- project:
name: org/project1
check:
jobs:
- project1-job
However currently only one of the stanzas are effective depending on
which was processed last.
This can be fixed by canonicalizing the project names when extending
the unparsed config.
Change-Id: Icaf8fca3aa4577b009d691f9a67adcb43ea040f5
This commit is contained in:
@@ -18,8 +18,10 @@
|
||||
- job:
|
||||
name: common-config-job
|
||||
|
||||
# Use the canonical name here. This should be merged with the org/project1 in
|
||||
# the other repo.
|
||||
- project:
|
||||
name: org/project1
|
||||
name: review.example.com/org/project1
|
||||
check:
|
||||
jobs:
|
||||
- common-config-job
|
||||
|
||||
Reference in New Issue
Block a user