From a4e6a2b5565bef16bb76e99e61cb37e3103a7b5b Mon Sep 17 00:00:00 2001
From: Sjoerd Simons <sjoerd@collabora.com>
Date: Mon, 14 Nov 2022 13:26:03 +0100
Subject: [PATCH] Use job variables for naming/metadata

---
 testjob.jinja2 | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/testjob.jinja2 b/testjob.jinja2
index febb514..dcdc7e6 100644
--- a/testjob.jinja2
+++ b/testjob.jinja2
@@ -1,6 +1,11 @@
 device_type: {{ env["DEVICE_TYPE"] }}
 
-job_name: electronica 2022
+{% raw %}
+job_name: "{{ job.CI_JOB_ID }} - {{ job.CI_PROJECT_NAME }} - {{ job.CI_JOB_NAME }}"
+metadata:
+  gitlab.job_url: "{{ job.CI_JOB_URL }}"
+{% endraw %}
+
 timeouts:
   job:
     minutes: 15
-- 
GitLab