Use null values instead of the empty dict for sql reporter
Change-Id: I23793e99e6ab6afdbe2f76a4433719a7f234ef5d
This commit is contained in:
parent
b4eab9274d
commit
d5e2956411
|
@ -51,11 +51,12 @@ For example:
|
||||||
- pipeline:
|
- pipeline:
|
||||||
name: post-merge
|
name: post-merge
|
||||||
success:
|
success:
|
||||||
mydb_conn: {}
|
mydb_conn:
|
||||||
failure:
|
failure:
|
||||||
mydb_conn: {}
|
mydb_conn:
|
||||||
|
|
||||||
.. attr:: pipeline.<reporter>.<sql source>
|
.. attr:: pipeline.<reporter>.<sql source>
|
||||||
|
|
||||||
To report to a database, add an empty dictionary to the desired
|
To report to a database, add a key with the connection name and an
|
||||||
pipeline :ref:`reporter<reporters>` attributes.
|
empty value to the desired pipeline :ref:`reporter<reporters>`
|
||||||
|
attributes.
|
||||||
|
|
|
@ -7,12 +7,12 @@
|
||||||
success:
|
success:
|
||||||
gerrit:
|
gerrit:
|
||||||
Verified: 1
|
Verified: 1
|
||||||
resultsdb: {}
|
resultsdb:
|
||||||
failure:
|
failure:
|
||||||
gerrit:
|
gerrit:
|
||||||
Verified: -1
|
Verified: -1
|
||||||
resultsdb: {}
|
resultsdb:
|
||||||
resultsdb_failures: {}
|
resultsdb_failures:
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: project-merge
|
name: project-merge
|
||||||
|
|
|
@ -79,5 +79,5 @@ class SQLReporter(BaseReporter):
|
||||||
|
|
||||||
|
|
||||||
def getSchema():
|
def getSchema():
|
||||||
sql_reporter = v.Schema({})
|
sql_reporter = v.Schema(None)
|
||||||
return sql_reporter
|
return sql_reporter
|
||||||
|
|
Loading…
Reference in New Issue