Gitlab File

Gitlab file artifacts are references to files stored in Gitlab. They are generally consumed by stages that read configuration from text files, such as a Deploy Manifest stage.

Fields

Field Explanation
type Always gitlab/file.
reference The full path including filename for retrieval via the Gitlab API. https://gitlab.example.com/api/v4/projects/13083/repository/files/manifests%2Fconfig%2Eyaml/raw is an example from the Gitlab documentation. For more info, see the documentation here.
name The file path within your repo. path/to/file.yml is an example.
version The file’s commit or branch.
location N/A

Example

{
  "type": "gitlab/file",
  "reference": "https://gitlab.example.com/api/v4/projects/13083/repository/files/manifests%2Fconfig%2Eyaml/raw",
  "name": "manifests/config.yaml",
  "version": "master"
}