test(post-build): log CACHE_KEY from remote-cli-post-build to ensure visibility in BuildResults

This commit is contained in:
Frostebite
2025-09-05 22:51:56 +01:00
parent b8c3ad1227
commit c5f2078fcb
3 changed files with 7 additions and 1 deletions

View File

@@ -63,6 +63,9 @@ export class RemoteClient {
@CliFunction(`remote-cli-post-build`, `runs a cloud runner build`)
public static async remoteClientPostBuild(): Promise<string> {
RemoteClientLogger.log(`Running POST build tasks`);
// Ensure cache key is present in logs for assertions
RemoteClientLogger.log(`CACHE_KEY=${CloudRunner.buildParameters.cacheKey}`);
CloudRunnerLogger.log(`${CloudRunner.buildParameters.cacheKey}`);
// Guard: only push Library cache if the folder exists and has contents
try {