From 74f0544123ae275b52f9045304fbad829efa82ab Mon Sep 17 00:00:00 2001 From: jkilpatr Date: Tue, 16 May 2017 13:05:00 -0400 Subject: [PATCH] Store link for Jenkins build logs in CI version metadata So this is a very easy addition on this end, the problem is that right now logs are only collected for two weeks before being removed. Not to mention this link won't work until the build is done. So there are a couple of ways someone could click this link and get a 404. I'll talk to weshay about getting longer term log storage. Change-Id: I01fa5ea4b2560d918b82f9d12990d63fbe379f3e --- ansible/oooq/roles/oooq-metadata/templates/version.json.j2 | 1 + ansible/oooq/roles/oooq-metadata/vars/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/ansible/oooq/roles/oooq-metadata/templates/version.json.j2 b/ansible/oooq/roles/oooq-metadata/templates/version.json.j2 index 2bfd580d0..00a0c61bd 100644 --- a/ansible/oooq/roles/oooq-metadata/templates/version.json.j2 +++ b/ansible/oooq/roles/oooq-metadata/templates/version.json.j2 @@ -9,6 +9,7 @@ "osp_series": "{{series}}", "osp_version": "{{version}}", "dlrn_hash": "{{dlrn_hash}}", + "logs_link": "{{logs_link}}", "rhos_puddle": "{{rhos_puddle}}", "osp_deployment_installer": "oooq", "build": "{{build.stdout}}", diff --git a/ansible/oooq/roles/oooq-metadata/vars/main.yml b/ansible/oooq/roles/oooq-metadata/vars/main.yml index 2d4ded85c..e25de111b 100644 --- a/ansible/oooq/roles/oooq-metadata/vars/main.yml +++ b/ansible/oooq/roles/oooq-metadata/vars/main.yml @@ -1,2 +1,3 @@ dlrn_hash: "Not a pipeline build" rhos_puddle: "Not a pipeline build" +logs_link: "https://thirdparty-logs.rdoproject.org/{{ lookup('env','JOB_NAME') }}-{{ lookup('env','BUILD_NUMBER') }}/"