From 11df5a7eb0541e30abde51a582b90b20c5397501 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 19 Dec 2024 12:10:29 +0100 Subject: [PATCH] Hardcode manifest name when building source-only (#45554) --- eng/pipelines/templates/jobs/vmr-build.yml | 22 ++++++++++--------- src/SourceBuild/content/Directory.Build.props | 8 +++++-- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/eng/pipelines/templates/jobs/vmr-build.yml b/eng/pipelines/templates/jobs/vmr-build.yml index 6a91efc3fafe..733228ed85a1 100644 --- a/eng/pipelines/templates/jobs/vmr-build.yml +++ b/eng/pipelines/templates/jobs/vmr-build.yml @@ -204,11 +204,12 @@ jobs: sbomEnabled: true # Using build artifacts to enable publishing the vertical manifests to a single artifact from different jobs - - output: buildArtifacts - PathtoPublish: $(artifactsStagingDir)/manifests/${{ parameters.configuration }}/$(Agent.JobName).xml - ArtifactName: VerticalManifests - displayName: Publish Vertical Manifest - sbomEnabled: false + - ${{ if ne(parameters.buildSourceOnly, true) }}: + - output: buildArtifacts + PathtoPublish: $(artifactsStagingDir)/manifests/${{ parameters.configuration }}/$(Agent.JobName).xml + ArtifactName: VerticalManifests + displayName: Publish Vertical Manifest + sbomEnabled: false steps: - ${{ if not(parameters.isBuiltFromVmr) }}: @@ -578,8 +579,9 @@ jobs: continueOnError: true # Using build artifacts to enable publishing the vertical manifests to a single artifact from different jobs - - task: PublishBuildArtifacts@1 - inputs: - PathtoPublish: $(artifactsStagingDir)/manifests/${{ parameters.configuration }}/$(Agent.JobName).xml - ArtifactName: VerticalManifests - displayName: Publish Vertical Manifest + - ${{ if ne(parameters.buildSourceOnly, true) }}: + - task: PublishBuildArtifacts@1 + inputs: + PathtoPublish: $(artifactsStagingDir)/manifests/${{ parameters.configuration }}/$(Agent.JobName).xml + ArtifactName: VerticalManifests + displayName: Publish Vertical Manifest diff --git a/src/SourceBuild/content/Directory.Build.props b/src/SourceBuild/content/Directory.Build.props index e8b6663ffcd4..ae3802b3c5b4 100644 --- a/src/SourceBuild/content/Directory.Build.props +++ b/src/SourceBuild/content/Directory.Build.props @@ -200,8 +200,12 @@ - - $(ArtifactsAssetManifestsDir)$([MSBuild]::ValueOrDefault('$(VerticalName)', 'VerticalManifest')).xml + + $(VerticalName).xml + VerticalManifest.xml + $(ArtifactsAssetManifestsDir)$(MergedAssetManifestName)