Variable set as jobs:step:artifacts expire_in is not expanded
Summary
Seems that we can set jobs:step:artifacts expire_in as a variable. But code failed to be linted & executed.
Whereas runner seems to support it. See: gitlab-runner#6412 and gitlab-runner!1893 (closed)
Steps to reproduce
Example of .gitlab-ci.yml
stages:
- test
variables:
EXPIRE: 1d
test:
stage: test
script:
- echo "artefact" > artefact
artifacts:
paths:
- artefact
expire_in: $EXPIRE
Example Project
https://gitlab.com/lionnel.chassagne1/test-expire_in-variable
What is the current bug behavior?
- Linter raise an issue in editor: jobs:step:artifacts config contains unknown keys: expire
- Pipeline fails with error: Found errors in your .gitlab-ci.yml: jobs:test:artifacts expire in should be a duration
What is the expected correct behavior?
Run and expand the variable
Relevant logs and/or screenshots
See https://gitlab.com/lionnel.chassagne1/test-expire_in-variable/-/pipelines/569242608
Output of checks
This bug happens on GitLab.com. Once corrected, the relaunch of the pipeline shall succeed.
Results of GitLab environment info
Every environment (reproduced also with Giltab EE 15.0.2 on prem)
Results of GitLab application Check
Possible fixes
I don't see any workaround