In gitlab-ci.yml documentation, it says that
before_script is used to define the command that should be run before all jobs, including deploy jobs, but after the restoration of artifacts.
This tells me that artifact is produced before a job start running
But the artifact documentation says that
Artifacts is a list of files and directories which are attached to a job after it completes successfully
This tells me that artifact is produced after a job finish running.
This is a contradiction. Can someone please explain how this is not a contradiction?
I imagine they are talking about the artifact in previous job? But I don't know how artifact and job work and can be wrong.