Jaime Roman
Jaime Roman

Reputation: 989

Do not expire artifacts in gitlab

In the .gitlab-ci.yml file I am specifying that the artifacts expire in 1 day, however, from the gitlab website I can download the artifacts of each of the jobs that are older than two months and when I go to "usage quotas " shows that there is a lot of space used in the artifacts.

Here is docs

How can I delete them?

This is a snippet of my .gitlab-ci.yml file:

build:
  stage: build  
  rules:
    - if: '$CI_COMMIT_TAG != null || $CI_BUILD_REF_NAME =~ /^dev/ || $CI_BUILD_REF_NAME =~ /^hotfix/ || $CI_BUILD_REF_NAME =~ /^feature/ || $CI_BUILD_REF_NAME =~ /^error/'
  script:
    # - ...
  artifacts:
    expire_in: 1 day
    paths:
      - $CI_PROJECT_NAME.tar.gz

Upvotes: 2

Views: 2094

Answers (1)

S.Panta
S.Panta

Reputation: 1

artifacts:
    expire_in: 1 days

This might work

Upvotes: 0

Related Questions