From 4ecda0ee35cbeb396993e84b1a651855f1aee877 Mon Sep 17 00:00:00 2001 From: Daz DeBoer Date: Sat, 13 Jun 2026 21:03:25 -0600 Subject: [PATCH] Add missing cache status --- sources/src/cache-service.ts | 1 + sources/src/caching-report.ts | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sources/src/cache-service.ts b/sources/src/cache-service.ts index 8eab25fc..2a824497 100644 --- a/sources/src/cache-service.ts +++ b/sources/src/cache-service.ts @@ -33,6 +33,7 @@ export type ProjectCacheStatus = | 'not-enabled' // the hidden opt-in env var was not set (rendered as nothing) | 'trial-expired' // past the hard trial expiry | 'trial-not-licensed' // Develocity trial token missing or invalid + | 'no-encryption-key' // Cannot store due to missing encryption key | 'enabled' // Trial in effect: will attempt to save project state export interface CacheEntryReport { diff --git a/sources/src/caching-report.ts b/sources/src/caching-report.ts index a690c2a9..36cbb99e 100644 --- a/sources/src/caching-report.ts +++ b/sources/src/caching-report.ts @@ -30,8 +30,9 @@ const CLEANUP_COPY: Record = { const PROJECT_CACHE_COPY: Record = { 'not-enabled': ``, - 'trial-expired': `Project state (build-logic and configuration cache) was not cached — the Develocity caching trial has expired.`, - 'trial-not-licensed': `Project state (build-logic and configuration cache) was not cached — a valid Develocity trial token is required.`, + 'trial-expired': `Project state (build-logic and configuration cache) was not cached - the Develocity caching trial has expired.`, + 'trial-not-licensed': `Project state (build-logic and configuration cache) was not cached - a develocity-access-key and develocity-server-url is required.`, + 'no-encryption-key': `Project state (build-logic and configuration cache) was not cached - a [cache-encryption-key](${DOCS}#cache-encryption-key) is required.`, enabled: `Caching of project state (build-logic and configuration cache) was enabled.` }