I'd like to expose artifacts of some jobs to users in the Gitlab UI, for information purposes only (e.g. for debugging).
Problem: artifacts are automatically downloaded in future stages/jobs, and overwrite files. In other words, artifacts totally mess up your repo during the pipeline!
I am aware that if I use dependencies: [] in other jobs, they will not download any artifacts. But this is not very convenient as I need to remember to add this line every time. I wish there was something like a persistent key word as in:
my_job:
script:
- echo "Hello world" >> logs/hello.txt
artifacts:
paths:
- logs/
persistent: false
So that when persistent is false, this job's artifacts are ignored in future stages/jobs.
Just checking: did I miss anything? Any suggestions?