Commit graph

9 commits

Author SHA1 Message Date
gfyoung
15b878e27e Enable more frozen string in app/models/**/*.rb
Partially addresses #47424.
2018-08-07 00:37:36 -07:00
Shinya Maeda
14d1715610 Inlcude the size of trace artifacts 2018-02-06 15:50:07 +09:00
Kamil Trzcinski
ab02bd6942 Use job_artifacts_archive|metadata 2017-12-03 12:04:49 +01:00
Kamil Trzcinski
8f01e67980 Revert "Rename job_archive|metadata to artifacts_archive|metadata"
This reverts commit 714082e65304ae2ec5c5400c59a68ab63e724aa9.
2017-12-03 12:04:49 +01:00
Kamil Trzcinski
2045a771bf Rename job_archive|metadata to artifacts_archive|metadata 2017-12-03 12:04:49 +01:00
Zeger-Jan van de Weg
f5d3b92155 Remove Ci::Build#artifacts_file? 2017-12-03 12:04:49 +01:00
Kamil Trzcinski
871de0f185 Rename artifacts_* to legacy_artifacts_* 2017-12-03 12:04:49 +01:00
Zeger-Jan van de Weg
61864a5a5b Rename Artifact to JobArtifact, split metadata out
Two things at ones, as there was no clean way to seperate the commit and
give me feedback from the tests.

But the model Artifact is now JobArtifact, and the table does not have a
type anymore, but the metadata is now its own model:
Ci::JobArtifactMetadata.
2017-12-03 12:04:48 +01:00
Zeger-Jan van de Weg
25df666156 Create Ci::Artifacts
To allow jobs/builds to have multiple artifacts, and to start seperating
concerns from Ci::Build a new model is created: Ci::Artifact.

Changes include the updating of the ArtifactUploader to adapt to a
slightly different interface. The uploader expects to be initialized
with a `Ci::Build`.

Futher a migration with the minimal fields, the needed foreign keys and
an index.

Last, the way this works is by prepending a module to Ci::Build so we
can basically override behaviour but if needed use `super` to get the
original behaviour.
2017-12-03 12:04:47 +01:00