Artifacts


Artifacts

Transfer files between jobs using artifacts

All jobs in subsequent stages will receive the artifacts (by default)

Configuration

artifacts can be in default

Include and exclude paths

Expire artifacts

Name artifacts

Add untracked files

When to create artifacts (jobs success, failure, always)


Hands-On

Test binary in a new job and stage

  1. Create artifact from hello binary
  2. Add new stage called test
  3. Add new job in stage test
  4. Execute binary to test it

(See new .gitlab-ci.yml)


Dependencies

Jobs can receive artifacts from only some previous jobs

Done using dependencies

Empty list disables receiving artifacts:

job_name:
  # ...
  dependencies: []
  # ...

Download artifact from another pipeline

See GitLab API