Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use agent's temp directory instead of OS's. #9786

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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');
chandlerkent marked this conversation as resolved.
Show resolved Hide resolved
}

export function getCurrentTime(): number {
Expand Down
4 changes: 2 additions & 2 deletions Tasks/PackerBuildV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": {
"Major": 0,
"Minor": 0,
"Patch": 19
"Patch": 20
},
"demands": [],
"minimumAgentVersion": "2.0.0",
Expand Down Expand Up @@ -305,4 +305,4 @@
"CouldNotFetchAccessTokenforMSIDueToMSINotConfiguredProperlyStatusCode": "Could not fetch access token for Managed Service Principal. Please configure Managed Service Identity (MSI) for virtual machine 'https://aka.ms/azure-msi-docs'. Status code: %s, status message: %s",
"CouldNotFetchAccessTokenforMSIStatusCode": "Could not fetch access token for Managed Service Principal. Status code: %s, status message: %s"
}
}
}
4 changes: 2 additions & 2 deletions Tasks/PackerBuildV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": {
"Major": 0,
"Minor": 0,
"Patch": 19
"Patch": 20
},
"demands": [],
"minimumAgentVersion": "2.0.0",
Expand Down Expand Up @@ -305,4 +305,4 @@
"CouldNotFetchAccessTokenforMSIDueToMSINotConfiguredProperlyStatusCode": "ms-resource:loc.messages.CouldNotFetchAccessTokenforMSIDueToMSINotConfiguredProperlyStatusCode",
"CouldNotFetchAccessTokenforMSIStatusCode": "ms-resource:loc.messages.CouldNotFetchAccessTokenforMSIStatusCode"
}
}
}
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');
chandlerkent marked this conversation as resolved.
Show resolved Hide resolved
}

export function getCurrentTime(): number {
Expand Down
4 changes: 2 additions & 2 deletions Tasks/PackerBuildV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": {
"Major": 1,
"Minor": 0,
"Patch": 5
"Patch": 6
},
"demands": [],
"preview": "true",
Expand Down Expand Up @@ -337,4 +337,4 @@
"CouldNotFetchAccessTokenforMSIStatusCode": "Could not fetch access token for Managed Service Principal. Status code: %s, status message: %s",
"CreateManagedImageNotSupportedForVHDSource": "Creating managed image from a source VHD is not supported. You must set 'Base image source' input value to 'Gallery'."
}
}
}
4 changes: 2 additions & 2 deletions Tasks/PackerBuildV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": {
"Major": 1,
"Minor": 0,
"Patch": 5
"Patch": 6
},
"demands": [],
"preview": "true",
Expand Down Expand Up @@ -337,4 +337,4 @@
"CouldNotFetchAccessTokenforMSIStatusCode": "ms-resource:loc.messages.CouldNotFetchAccessTokenforMSIStatusCode",
"CreateManagedImageNotSupportedForVHDSource": "ms-resource:loc.messages.CreateManagedImageNotSupportedForVHDSource"
}
}
}