Skip to content

Expand variable for artifact expire_in parameter

What does this MR do?

Expand variables passed in the expire_in parameter of artifacts.

job1:
  variables:
    EXPIRE_TIME: 10d
  script:
    - mkdir test
    - echo test > test/test.txt
  artifacts:
    paths:
      - test/*
    expire_in: $EXPIRE_TIME

Why was this MR needed?

Relates to #6412

Are there points in the code the reviewer needs to double check?

Maybe tests

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Added tests for this feature/bug
  • In case of conflicts with master - branch was rebased

What are the relevant issue numbers?

Closes #6412

Merge request reports