Skip to content

Commit 0c4c063

Browse files
rosieyohannanahmedwab
authored andcommitted
formatting fixes
1 parent 13c9a5f commit 0c4c063

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

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

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,30 +497,39 @@ Configure job retention periods to control how long job data is kept. Job retent
497497
For more information on cache retention, see the xref:guides:optimize:persist-data.adoc#custom-storage-usage[Persisting data overview] page.
498498

499499
[#retention-errors]
500-
==== Common errors
500+
===== Common errors
501501

502502
When configuring job retention, you may encounter the following validation errors:
503503

504504
* **Invalid time format**: The retention period must use the format `^([1-9]|[12][0-9]|30)d$` (1-30 days with "d" suffix). For example, use `"7d"` instead of `"12h"` or `"1w"`.
505505
506506
* **Incorrect data type**: The `retention` key expects a map with `caches` as a string value, not a direct string.
507507
508-
*Example:*
508+
*Examples:*
509509

510+
.Incorrect - direct string value
510511
[source,yaml]
511512
----
512-
# Incorrect - direct string value
513+
# Incorrect - direct string value
513514
jobs:
514515
say-hello:
515516
retention: "12h" # Error: expected type: String, found: Mapping
517+
----
516518

517-
# ❌ Incorrect - invalid time format
519+
.Incorrect - invalid time format
520+
[source,yaml]
521+
----
522+
#Incorrect - invalid time format
518523
jobs:
519524
say-hello:
520525
retention:
521526
caches: "12h" # Error: does not match pattern ^([1-9]|[12][0-9]|30)d$
527+
----
522528

523-
# ✅ Correct - proper format
529+
.Correct format
530+
[source,yaml]
531+
----
532+
# Correct format
524533
jobs:
525534
say-hello:
526535
retention:

0 commit comments

Comments
 (0)