Add Jenkins HTTPS job for Prometheus agent
DriveTrain CI/CD Jenkins is moved under HTTPS, so adding
separate job for Prometheus as it supports only one scheme
per job even multiple endpoints are specified.
Change-Id: I23c5268ef68ed7c4f59ad3429a6f9f8234c083e3
Related-Prod: PROD-32276
(cherry picked from commit 291033c83389c4dbc37974c002ab0111c1c5fc80)
diff --git a/jenkins/meta/prometheus.yml b/jenkins/meta/prometheus.yml
index b8a350b..a3adea5 100644
--- a/jenkins/meta/prometheus.yml
+++ b/jenkins/meta/prometheus.yml
@@ -3,7 +3,12 @@
server:
target:
static:
+{%- if client.master.get('proto', 'http') == 'https' %}
+ jenkins_https:
+ scheme: 'https'
+{%- else %}
jenkins:
+{%- endif %}
metrics_path: /prometheus/
endpoint:
- address: {{ client.master.host }}