Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 52,228
    • Issues 52,228
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,548
    • Merge requests 1,548
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #36358
Closed
Open
Issue created Nov 14, 2019 by TW3@TW3💭

Docs feedback: GitLab Pages artifacts:expire_in

GitLab Pages

artifacts:expire_in

Problem to solve

  • https://docs.gitlab.com/ee/ci/yaml/#artifactsexpire_in
  • https://docs.gitlab.com/ce/ci/yaml/#pages

In the pages deploy stage (unique Gitlab job) would an artifacts:expire_in directive such as like this: https://gitlab.com/pages/gitbook/blob/master/.gitlab-ci.yml#L31 be a good idea? Wouldn't that just wipe out the pages in a week? Making the web pages inaccessible. Or are both the artifacts and also another separate copy for the pages being stored separately, so just the artifacts from the job are removed?

  • I understand that any normal job which creates artifacts can have an artifacts:expire_in directive, that is if you want to change the length of time Gitlab stores the results of a build. So does adding the artifacts:expire_in directive to a pages job do anything? And would the artifacts:expire_in directive on a pages job not wipe out the files which are used to serve the web pages, once it expires?
  • Is the default really to upload the artifacts from a pages job once as an artifact archive and then again (twice) stored and served as a static website? Or is just one artifact archive created?
  • Could the documentation be updated to reflect if there is any point in adding an artifacts:expire_in directive to the pages job in .gitlab-ci.yml please?

Further details

Sorry if the explanation is confusing.

Proposal

Ammend the documentation to reflect the behaviour.

Who can address the issue

Anyone with knowledge of .gitlab-ci.yml, Gitlab pages and is responsible for documentation at Gitlab.com.

Assignee
Assign to
Time tracking