Normalize paths in new artifact upload to match legacy upload

This commit is contained in:
Angela P Wen
2024-09-04 14:22:35 -07:00
parent df0bf0415d
commit 2992a95c3f
3 changed files with 4 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ async function uploadDebugArtifacts(toUpload, rootDir, artifactName, ghVariant)
}
else {
const artifactClient = new artifact.DefaultArtifactClient();
await artifactClient.uploadArtifact(sanitizeArifactName(`${artifactName}${suffix}`), toUpload, rootDir, {
await artifactClient.uploadArtifact(sanitizeArifactName(`${artifactName}${suffix}`), toUpload.map((file) => path.normalize(file)), path.normalize(rootDir), {
// ensure we don't keep the debug artifacts around for too long since they can be large.
retentionDays: 7,
});