aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/base/agl-metadata.jinja21
-rw-r--r--utils/agljobtemplate.py6
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