From 992bfebaa5b0ae4a0ed3ddb48775fdfdfaff181f Mon Sep 17 00:00:00 2001
From: "Dr. Jens Harbott" <harbott@osism.tech>
Date: Wed, 31 Jan 2024 20:44:07 +0100
Subject: [PATCH] Return list-changes results as zuul artifact

In order to make it easier to view the job results, return them as
artifact.

Change-Id: Icaac122a94a3285a81f2c765eef79a3dbc14f2e4
---
 .zuul.yaml                                    |  1 +
 playbooks/releases-tox-list-changes/post.yaml | 10 ++++++++++
 2 files changed, 11 insertions(+)
 create mode 100644 playbooks/releases-tox-list-changes/post.yaml

diff --git a/.zuul.yaml b/.zuul.yaml
index 3189bd7173..22a2abe7cd 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -1,6 +1,7 @@
 - job:
     name: releases-tox-list-changes
     parent: openstack-tox
+    post-run: playbooks/releases-tox-list-changes/post.yaml
     timeout: 3600
     vars:
       tox_envlist: list-changes
diff --git a/playbooks/releases-tox-list-changes/post.yaml b/playbooks/releases-tox-list-changes/post.yaml
new file mode 100644
index 0000000000..8317d7f57e
--- /dev/null
+++ b/playbooks/releases-tox-list-changes/post.yaml
@@ -0,0 +1,10 @@
+- hosts: all
+  tasks:
+    - name: Return artifact to Zuul
+      zuul_return:
+        data:
+          zuul:
+            artifacts:
+              - name: list-changes results
+                url: tox/list-changes/list-changes-results.log
+