From a68fd9beabcb015188951400dc0e04532e878c3a Mon Sep 17 00:00:00 2001 From: Aaron Chan Date: Wed, 29 Aug 2018 21:25:50 +0800 Subject: [PATCH] lava-templates: Add Jinja2 LAVA job-template on BSP x86_64 Include a reference LAVA job template on x86_64 in jinja2 format. This template will parsed and converted into YAML configuration before job is trigger on LAVA server end thru Yocto autobuilder. Signed-off-by: Aaron Chan Signed-off-by: Richard Purdie --- lava-templates/generate-jobconfig.jinja2 | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 lava-templates/generate-jobconfig.jinja2 diff --git a/lava-templates/generate-jobconfig.jinja2 b/lava-templates/generate-jobconfig.jinja2 new file mode 100644 index 0000000..61fbcad --- /dev/null +++ b/lava-templates/generate-jobconfig.jinja2 @@ -0,0 +1,43 @@ +device_type: {{ device_type }} +job_name: {{ job_name }} +timeouts: + job: + minutes: {{ timeout.job.minutes }} + action: + minutes: {{ timeout.action.minutes }} + connection: + minutes: {{ timeout.connection.minutes }} +priority: {{ priority }} +visibility: {{ visibility }} +actions: +- deploy: + timeout: + minutes: {{ deploy.timeout }} + to: {{ deploy.to }} + kernel: + url: {{ deploy.kernel.url }} + type: {{ deploy.kernel.type }} + modules: + url: {{ deploy.modules.url }} + compression: {{ deploy.modules.compression }} + nfsrootfs: + url: {{ deploy.nfsrootfs.url }} + compression: {{ deploy.nfsrootfs.compression }} + os: {{ deploy.os }} +- boot: + timeout: + minutes: {{ boot.timeout }} + method: {{ boot.method }} + commands: {{ boot.commands }} + auto_login: { login_prompt: {{ boot.auto_login.login_prompt }}, username: {{ boot.auto_login.username }} } + prompts: + - {{ boot.prompts }} +- test: + timeout: + minutes: {{ test.timeout }} + name: {{ test.name }} + definitions: + - repository: {{ test.definitions.repository }} + from: {{ test.definitions.from }} + path: {{ test.definitions.path }} + name: {{ test.definitions.name }}