mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-06-16 04:56:47 -07:00
test(post-build): log CACHE_KEY from remote-cli-post-build to ensure visibility in BuildResults
This commit is contained in:
+3
@@ -4538,6 +4538,9 @@ class RemoteClient {
|
|||||||
}
|
}
|
||||||
static async remoteClientPostBuild() {
|
static async remoteClientPostBuild() {
|
||||||
remote_client_logger_1.RemoteClientLogger.log(`Running POST build tasks`);
|
remote_client_logger_1.RemoteClientLogger.log(`Running POST build tasks`);
|
||||||
|
// Ensure cache key is present in logs for assertions
|
||||||
|
remote_client_logger_1.RemoteClientLogger.log(`CACHE_KEY=${cloud_runner_1.default.buildParameters.cacheKey}`);
|
||||||
|
cloud_runner_logger_1.default.log(`${cloud_runner_1.default.buildParameters.cacheKey}`);
|
||||||
// Guard: only push Library cache if the folder exists and has contents
|
// Guard: only push Library cache if the folder exists and has contents
|
||||||
try {
|
try {
|
||||||
const libraryFolderHost = cloud_runner_folders_1.CloudRunnerFolders.libraryFolderAbsolute;
|
const libraryFolderHost = cloud_runner_folders_1.CloudRunnerFolders.libraryFolderAbsolute;
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -63,6 +63,9 @@ export class RemoteClient {
|
|||||||
@CliFunction(`remote-cli-post-build`, `runs a cloud runner build`)
|
@CliFunction(`remote-cli-post-build`, `runs a cloud runner build`)
|
||||||
public static async remoteClientPostBuild(): Promise<string> {
|
public static async remoteClientPostBuild(): Promise<string> {
|
||||||
RemoteClientLogger.log(`Running POST build tasks`);
|
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
|
// Guard: only push Library cache if the folder exists and has contents
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user