diff --git a/images.CI/linux-and-win/azure-pipelines/image-generation.yml b/images.CI/linux-and-win/azure-pipelines/image-generation.yml index 94ad9e21b..c7f546c44 100644 --- a/images.CI/linux-and-win/azure-pipelines/image-generation.yml +++ b/images.CI/linux-and-win/azure-pipelines/image-generation.yml @@ -88,7 +88,7 @@ jobs: env: PACKER_LOG: 1 - PACKER_LOG_PATH: $(Build.ArtifactStagingDirectory)/packer-log.txt + PACKER_LOG_PATH: "$(Agent.TempDirectory)/packer-log.txt" - task: PowerShell@2 displayName: 'Copy image artifacts to the separate directory' @@ -130,7 +130,7 @@ jobs: inputs: targetType: 'filePath' filePath: ./images.CI/measure-provisioners-duration.ps1 - arguments: -PackerLogPath "$(Build.ArtifactStagingDirectory)/packer-log.txt" ` + arguments: -PackerLogPath "$(Agent.TempDirectory)/packer-log.txt" ` -PrefixToPathTrim "$(TemplateDirectoryPath)" ` -PrintTopNLongest 25