diff --git a/eng/common/templates/jobs/publish.yml b/eng/common/templates/jobs/publish.yml index 048d42865..05538ba41 100644 --- a/eng/common/templates/jobs/publish.yml +++ b/eng/common/templates/jobs/publish.yml @@ -44,6 +44,8 @@ jobs: parameters: targetPath: $(imageInfoHostDir) artifactName: image-info + # This can fail in scenarios where no build jobs have run to produce any artifacts + continueOnError: true - template: /eng/common/templates/steps/set-image-info-path-var.yml@self parameters: publicSourceBranch: $(publicSourceBranch) diff --git a/eng/common/templates/stages/build-test-publish-repo.yml b/eng/common/templates/stages/build-test-publish-repo.yml index e8309beda..059bdbed0 100644 --- a/eng/common/templates/stages/build-test-publish-repo.yml +++ b/eng/common/templates/stages/build-test-publish-repo.yml @@ -344,7 +344,6 @@ stages: condition: " and( not(canceled()), - ne(stageDependencies.Post_Build.outputs['Build.MergeImageInfoFiles.noImageInfos'], 'true'), and( contains(variables['stages'], 'publish'), or( diff --git a/eng/common/templates/steps/init-docker-windows.yml b/eng/common/templates/steps/init-docker-windows.yml index d69667f99..a6fbaead6 100644 --- a/eng/common/templates/steps/init-docker-windows.yml +++ b/eng/common/templates/steps/init-docker-windows.yml @@ -51,7 +51,7 @@ steps: $authedImageBuilderCmds = @( '$env:AZURE_TENANT_ID = $env:tenantId' '$env:AZURE_CLIENT_ID = $env:servicePrincipalId' - '$env:AZURE_FEDERATED_TOKEN_FILE' + " = $tokenHostFilePath" + '$env:AZURE_FEDERATED_TOKEN_FILE = ' + "'" + "$tokenHostFilePath" + "'" $runImageBuilderCmd ) diff --git a/eng/common/templates/variables/docker-images.yml b/eng/common/templates/variables/docker-images.yml index 922be17a4..d74bdc84b 100644 --- a/eng/common/templates/variables/docker-images.yml +++ b/eng/common/templates/variables/docker-images.yml @@ -1,5 +1,5 @@ variables: - imageNames.imageBuilderName: mcr.microsoft.com/dotnet-buildtools/image-builder:2575886 + imageNames.imageBuilderName: mcr.microsoft.com/dotnet-buildtools/image-builder:2584978 imageNames.imageBuilder: $(imageNames.imageBuilderName) imageNames.imageBuilder.withrepo: imagebuilder-withrepo:$(Build.BuildId)-$(System.JobId) imageNames.testRunner: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner2.0-docker-testrunner