Skip to content

Commit 5efc68f

Browse files
rosieyohannanahmedwab
authored andcommitted
move example
1 parent 0c4c063 commit 5efc68f

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

docs/reference/modules/ROOT/pages/configuration-reference.adoc

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,24 @@ jobs:
494494

495495
Configure job retention periods to control how long job data is kept. Job retention specifically controls cache retention at the job level. This setting can be configured from 1 day to 15 days using string values (for example, "1d", "7d", "15d"). Job retention reduces the organization-level retention from the default by automatically removing cache data after the specified period.
496496

497+
*Example:*
498+
499+
[source,yaml]
500+
----
501+
version: 2.1
502+
503+
jobs:
504+
test:
505+
docker:
506+
- image: cimg/node:18.0
507+
retention:
508+
caches: 7d
509+
steps:
510+
- checkout
511+
- run: npm install
512+
- run: npm test
513+
----
514+
497515
For more information on cache retention, see the xref:guides:optimize:persist-data.adoc#custom-storage-usage[Persisting data overview] page.
498516

499517
[#retention-errors]
@@ -536,24 +554,6 @@ jobs:
536554
caches: "7d" # Valid: 7 days
537555
----
538556

539-
*Example:*
540-
541-
[source,yaml]
542-
----
543-
version: 2.1
544-
545-
jobs:
546-
test:
547-
docker:
548-
- image: cimg/node:18.0
549-
retention:
550-
caches: 7d
551-
steps:
552-
- checkout
553-
- run: npm install
554-
- run: npm test
555-
----
556-
557557
'''
558558

559559
[#parallelism]

0 commit comments

Comments
 (0)