artifacts kept from expiring not visible in API
Summary
Whether an artifact/job is kept from expiring is not visible in the jobs api
Steps to reproduce
You can keep job artifacts from expiring by clicking a button in the GUI or API (https://docs.gitlab.com/ee/api/jobs.html#keep-artifacts). See https://docs.gitlab.com/ee/ci/yaml/#artifacts-expire_in But the job information from the api (https://docs.gitlab.com/ee/api/jobs.html) has no indication that this job has been kept from expiry.
What is the expected correct behavior?
There should be a field in the jobs result that indicates that an artifact has been manually kept. This field is important as for regular artifact cleanup via the api you often want to skip jobs that have been tagged or have been kept from expiring manually. Without any information available in the api the latter is not possible.
While cleanup on pipelines with expiry should not be necessary you still want to do it as the expiry tags may have only been added to the pipeline configuration after many artifacts have already been created (due to
Results of GitLab environment info
Running 10.6.3-ee