role-addition: automatically add the new molecule jobs into periodic
... so we don't have to add them manually later. Change-Id: I0e07ae2450430db45279edc123e3658aafcf7069
This commit is contained in:
parent
378e46c7b8
commit
51b20090f6
@ -66,6 +66,11 @@
|
||||
{% set gate_jobs = (item['project-template']['gate']['jobs'] | sort) %}
|
||||
{% set _ = item['project-template']['gate'].update({'jobs': gate_jobs}) %}
|
||||
{% endif %}
|
||||
{% if not (new_job_name in item['project-template']['periodic-weekly']['jobs']) %}
|
||||
{% set _ = item['project-template']['periodic-weekly']['jobs'].append(new_job_name) %}
|
||||
{% set periodic_jobs = (item['project-template']['periodic-weekly']['jobs'] | sort) %}
|
||||
{% set _ = item['project-template']['periodic-weekly'].update({'jobs': periodic_jobs}) %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if item['job']['name'] == new_job_name %}
|
||||
|
Loading…
Reference in New Issue
Block a user