Fix error in job parser
Change-Id: Id806d3648ad7464a2e6d1ae1235061f48014a49a
This commit is contained in:
parent
4122b0b8f0
commit
aa62ecad86
@ -17,8 +17,12 @@
|
||||
jobs:
|
||||
- test-autodoc
|
||||
- example
|
||||
- does-not-exist-in-this-repo
|
||||
- does-not-exist-in-this-repo:
|
||||
required-projects:
|
||||
- some-project
|
||||
gate:
|
||||
jobs:
|
||||
- example
|
||||
- does-not-exist-in-this-repo
|
||||
- does-not-exist-in-this-repo:
|
||||
required-projects:
|
||||
- some-project
|
||||
|
@ -43,7 +43,7 @@ class ProjectTemplate(object):
|
||||
jobs = []
|
||||
for job in v['jobs']:
|
||||
if isinstance(job, dict):
|
||||
job = list(dict.keys())[0]
|
||||
job = list(job.keys())[0]
|
||||
jobs.append(job)
|
||||
if jobs:
|
||||
self.pipelines[k] = jobs
|
||||
|
Loading…
Reference in New Issue
Block a user