Skip to content

Commit

Permalink
Use agent's temp directory instead of OS's.
Browse files Browse the repository at this point in the history
Fixes an issue where multiple agents installed on the same host may
clash with the same test directory.

Fixes #9785
  • Loading branch information
Chandler Kent committed Mar 11, 2019
1 parent 96494cc commit 64d6198
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tasks/PackerBuildV0/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function findMatch(root: string, patterns: string[] | string): string[] {
}

export function getTempDirectory(): string {
return os.tmpdir();
return tl.getVariable('Agent.TempDirectory');
}

export function getCurrentTime(): number {
Expand Down
2 changes: 1 addition & 1 deletion Tasks/PackerBuildV1/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function findMatch(root: string, patterns: string[] | string): string[] {
}

export function getTempDirectory(): string {
return os.tmpdir();
return tl.getVariable('Agent.TempDirectory');
}

export function getCurrentTime(): number {
Expand Down

0 comments on commit 64d6198

Please sign in to comment.