From 45094c3fd6e693fb816de79ee4a0d49ef8b6b828 Mon Sep 17 00:00:00 2001 From: Marcel Grosshans Date: Thu, 21 Apr 2022 11:28:14 +0200 Subject: [PATCH] Use Agent.BuildDirectory instead of Agent.WorkFolder Agent.WorkFolder is not mounted as docker volume by Azure Pipelines, if containers are used. This causes the SynopsisDetectTask to fail because the detect folder cannot be created. This commit changes the WorkingDirectory to Agent.BuildDirectory. The detect folder can be created and the detect script can be downloaded properly even from a container. --- tasks/synopsys-detect-task/ts/PathResolver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/synopsys-detect-task/ts/PathResolver.ts b/tasks/synopsys-detect-task/ts/PathResolver.ts index d803b0d..857984f 100644 --- a/tasks/synopsys-detect-task/ts/PathResolver.ts +++ b/tasks/synopsys-detect-task/ts/PathResolver.ts @@ -12,7 +12,7 @@ export class PathResolver { } static getWorkingDirectory(): string { - return task.getVariable('Agent.WorkFolder') || __dirname + return task.getVariable('Agent.BuildDirectory') || __dirname } static combinePathSegments(...pathSegments: string[]): string {