Commit Graph

6 Commits

Author SHA1 Message Date
James E. Blair 27c9729410 Return artifact metadata in API endpoint
Change-Id: Ifbfe385f652e3036373ce1cda7c14f4042ab5477
2019-02-19 16:12:12 -08:00
James E. Blair 5271b592af Allow extra data in artifact schema validation
The schema validator for zuul.artifacts returned via zuul_return
did not allow for extra return data (outside of the zuul hierarchy).

Correct the validator to allow that, and update the test to exercise
it.

Change-Id: Ia8d7ed212b03d978bec1a7de1a2647b0c87b7cf9
2019-02-19 14:58:25 -08:00
James E. Blair c27eff809d Combine zuul.artifacts lists in zuul_return
In order to make it simple for multiple independent playbooks to return
artifacts, append the values of zuul.artifacts in zuul_return rather than
the usual method of overwriting lists.

Change-Id: I09e6076b4bb354023c5414d149d9bfa59fb3ea4b
2019-02-19 12:53:36 -08:00
James E. Blair b7c68c2f76 Combine artifact URLs with log_url if relative
The plan for the idea of a "promote" pipeline is to fetch
previously uploaded artifacts from the build log server
and move them to the final publication location.  However,
jobs which store data (such as documentation builds,
tarballs, or container images) on the log server should not
need to know the configuration of the log server in order
to return the artifact URL to zuul.  To support this, if
the job returns a relative URL for an artifact, assume it
is relative to the log URL for the build and combine the
two when storing the artifact info.

Change-Id: I4bce2401c9e59fd469e3b3da2973514c07faecf2
2019-01-04 14:01:23 -08:00
James E. Blair 6d1640d714 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
2018-11-28 07:53:41 -08:00
James E. Blair 8284489e09 Port SQLAlchemy reporter to v3 driver structure
This completes the merge from master and re-enables the sqlalchemy
driver tests.

Change-Id: I8e6effb3f0052343d5c6c80e9edaa2a9ff360b4d
2017-03-17 16:17:56 -07:00