diff options
author | Khouloud Touil <ktouil@baylibre.com> | 2019-02-18 16:39:24 +0100 |
---|---|---|
committer | Khouloud Touil <ktouil@baylibre.com> | 2019-02-28 10:04:59 +0100 |
commit | b402e64a807f4cf682acd0e49eb7943f19b386f1 (patch) | |
tree | b4076bb7c12a6adb1b765e7ab659492ddf9fcfe4 | |
parent | f85aaa11059b36972d5fd1c9cb838e65dca7a5b0 (diff) |
Add new metadata git.url
This patch adds a new metadata field git.url, this is a link back to the
AGL gerrit.
Change-Id: I7f7b5fff79198fac7814004ab99b3687cf92125c
Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
-rw-r--r-- | templates/base/agl-metadata.jinja2 | 1 | ||||
-rw-r--r-- | utils/agljobtemplate.py | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/templates/base/agl-metadata.jinja2 b/templates/base/agl-metadata.jinja2 index 8b74379..0c61c3f 100644 --- a/templates/base/agl-metadata.jinja2 +++ b/templates/base/agl-metadata.jinja2 @@ -14,3 +14,4 @@ metadata: test.plan: {{ test_plan }} device.type: {{ device_type }} job.build_environment: {{ kernel_tree }} + {% if (change_id) and (patch_set) %} git.url: https://gerrit.automotivelinux.org/gerrit/#/c/{{ change_id }}/{{ patch_set }} {% endif %} diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py index 1cda5ad..aab5234 100644 --- a/utils/agljobtemplate.py +++ b/utils/agljobtemplate.py @@ -175,6 +175,12 @@ class Agljobtemplate(object): if dtb_image is not None: job['dtb'] = dtb_image + if changeid is not None: + job['change_id'] = changeid + + if patchset is not None: + job['patch_set'] = patchset + if modules_image is not None: job['modules'] = modules_image |