Skip to content
Snippets Groups Projects
Commit 26d68951 authored by Denis Pynkin's avatar Denis Pynkin
Browse files

lava: move macroses into dedicated file


This allows to use the same macroses across all templates.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent e9b1ce66
No related branches found
No related tags found
1 merge request!230offline upgrade test between branches
{% macro kernel_type(arch) -%}
{% if arch == 'arm64' -%}
image
{%- else -%}
zimage
{%- endif %}
{%- endmacro %}
{% import 'common-boot-macros.yaml' as boot with context -%}
device_type: {{device_type}}
priority: medium
{% macro kernel_type(arch) -%}
{% if arch == 'arm64' -%}
image
{%- else -%}
zimage
{%- endif %}
{%- endmacro %}
visibility: {{visibility}}
......@@ -53,7 +48,7 @@ actions:
to: tftp
kernel:
url: {{firststageurl}}/{{arch}}/nfs/vmlinuz
type: {{kernel_type(arch)}}
type: {{boot.kernel_type(arch)}}
nfsrootfs:
url: {{firststageurl}}/{{arch}}/nfs/apertis-nfs-{{arch}}.tar.gz
compression: gz
......
job_name: Nfsroot tests on {{release_version}} {{pretty}} {{image_date}}
{% import 'common-boot-macros.yaml' as boot with context -%}
device_type: {{device_type}}
priority: medium
{% macro kernel_type(arch) -%}
{% if arch == 'arm64' -%}
image
{%- else -%}
zimage
{%- endif %}
{%- endmacro %}
visibility: {{visibility}}
notify:
......@@ -55,7 +49,7 @@ actions:
to: tftp
kernel:
url: {{baseurl}}/{{imgpath}}/{{image_date}}/{{arch}}/nfs/vmlinuz
type: {{kernel_type(arch)}}
type: {{boot.kernel_type(arch)}}
nfsrootfs:
url: {{baseurl}}/{{imgpath}}/{{image_date}}/{{arch}}/nfs/apertis-nfs-{{arch}}.tar.gz
compression: gz
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment