diff options
author | James E. Blair <jeblair@redhat.com> | 2018-11-26 15:05:12 -0800 |
---|---|---|
committer | James E. Blair <jeblair@redhat.com> | 2018-11-28 07:53:41 -0800 |
commit | 6d1640d714d300686414f5b727c8e3d593af82c4 (patch) | |
tree | e1d7c227b7a1914792cc90f2bf6406891d4dd093 /zuul/web | |
parent | 3b82885e5c08d9af9fc0b7127d100d807b3db995 (diff) | |
download | zuul-6d1640d714d300686414f5b727c8e3d593af82c4.tar.gz |
Add artifact table
Add an artifact table to the SQL reporter, and allow builds to store
artifact URLs using zuul_return. The web API will return the urls.
Change-Id: I8adfc25cc93327ca73c98bbe170e8f39a0864f7f
Diffstat (limited to 'zuul/web')
-rwxr-xr-x | zuul/web/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zuul/web/__init__.py b/zuul/web/__init__.py index 1b49e8fdb..9f1c59d8c 100755 --- a/zuul/web/__init__.py +++ b/zuul/web/__init__.py @@ -409,7 +409,14 @@ class ZuulWebAPI(object): 'ref': buildset.ref, 'newrev': buildset.newrev, 'ref_url': buildset.ref_url, + 'artifacts': [], } + + for artifact in build.artifacts: + ret['artifacts'].append({ + 'name': artifact.name, + 'url': artifact.url, + }) return ret @cherrypy.expose |