Skip to content

Instantly share code, notes, and snippets.

@makotom
Last active July 27, 2020 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makotom/7a110394d4afba9988e548ec96bb854a to your computer and use it in GitHub Desktop.
Save makotom/7a110394d4afba9988e548ec96bb854a to your computer and use it in GitHub Desktop.
CircleCI Server: Example of lifecycle policy for S3

Example of lifecycle policy configuration on a S3 bucket used by CircleCI

Prefix Tag Days Description of files Side effects of deletion
artifacts (null) 30 General artifacts (deliverables from store_artifacts and store_test_results) Artifacts will disappear from the list of artifacts in job results. URLs will return 404.
artifacts "circleci.object_type" === "project.cache" 15 Dependency caches The first build after deletion will be slow due to cache miss.
artifacts "circleci.object_type" === "workflow.workspace" 15 Workspaces If a job depending on workspaces is rerun (e.g. SSH rerun), attach_workspace will restore no files, and subsequent steps will fail.
artifacts/picard-task-configs (null) 1 Task config Nothing especially.
action-logs (null) 365 Outputs from each step Outputs will not be shown any more. Loading indicator will not disappear after opening a pull-down for each step.
cache (null) 15 Legacy cache This folder is not used actively. If there is a job depending on the files, the first build after deletion will be slow due to cache miss.

Folders which are not listed above

audit-logs

This is where audit logs are saved. Deleting this folder and files under this fodler has no impact on future operation of CircleCI, but deleted logs will be definitely lost and cannot be recovered.

code-signing-keys

This is where signing keys for macOS/iOS apps are stored. This folder is no longer used actively.

test-results

This is where statistic data collected with store_test_results resides. The data is used for future test splitting with circleci tests split --split-by=timings. Deleting test results will cause CIRCLE BUG errors in future jobs using parallelism.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment