Add conditional periodic-ness to tripleo jobs
Sometimes we need to run a periodic job with repositories like it's in regular check jobs, for example periodic jobs in tripleo-ci which are forced currently to run with promotion repos: "force_non_periodic" variable in job shall force job to run as "check" and use regular repositories as any check job. Sometimes we need to run a check job with promotion repositories to debug it or to try it, instead of depending on some patch let's use a job variable for that: "force_periodic" will force job to run as promotion job, using the same repositories as any promotion job uses. Change-Id: Ib305207dcd2b4626a7d7d340bc383dd176b11633
This commit is contained in:
parent
0961bf7347
commit
f8da1ddb7d
|
@ -17,8 +17,10 @@ featureset_conf: >-
|
|||
--extra-vars @{{ tripleo_quickstart_dir }}/config/general_config/{{ common_featureset }} {% endif -%}
|
||||
--extra-vars @{{ job_featureset_file }}
|
||||
|
||||
# "force_non_periodic" - will force job to run as check job, no matter which pipeline it runs
|
||||
# "force_periodic" - will force job to run as periodic (in terms of TripleO CI), no matter which pipeline it runs
|
||||
periodic: >-
|
||||
{% if 'periodic' in zuul.pipeline -%}
|
||||
{% if ('periodic' in zuul.pipeline and not force_non_periodic|default(false)|bool) or (force_periodic|default(false)|bool) -%}
|
||||
true
|
||||
{%- else -%}
|
||||
false
|
||||
|
|
Loading…
Reference in New Issue