@@ -94,18 +94,19 @@ stages:
9494 DropNamePrefix : OptimizationInputs/$(System.TeamProject)/$(Build.Repository.Name)
9595 ShouldSkipOptimize : $(ShouldSkipOptimize)
9696 AccessToken : $(System.AccessToken)
97+ outputParentDirectory : ' $(Build.StagingDirectory)'
9798 outputs :
9899 - output : pipelineArtifact
99100 displayName : ' Publish buildinfo.json as an artifact'
100101 condition : " succeeded()"
101- targetPath : ' $(Build.Repository.LocalPath)\artifacts\buildinfo.json '
102+ targetPath : ' $(Build.StagingDirectory)\BuildInfo '
102103 artifactName : ' BuildInfo'
103104 sbomBuildDropPath : $(Build.SourcesDirectory)/artifacts
104105
105106 - output : pipelineArtifact
106107 displayName : ' Publish nupkgs'
107108 condition : " and(succeeded(), eq(variables['IsOfficialBuild'], 'true'))"
108- targetPath : " $(Build.Repository.LocalPath )\\ artifacts \\ $(NupkgOutputDir) "
109+ targetPath : " $(Build.StagingDirectory )\\ nupkgs "
109110 artifactName : " nupkgs - $(RtmLabel)"
110111 sbomBuildDropPath : $(Build.SourcesDirectory)/artifacts
111112
@@ -114,7 +115,7 @@ stages:
114115 condition : " succeeded()"
115116 dropServiceURI : ' https://devdiv.artifacts.visualstudio.com'
116117 buildNumber : ' $(RunSettingsDropName)'
117- sourcePath : ' artifacts \RunSettings'
118+ sourcePath : ' $(Build.StagingDirectory) \RunSettings'
118119 toLowerCase : false
119120 usePat : true
120121 dropMetadataContainerName : ' DropMetadata-RunSettings'
@@ -126,21 +127,21 @@ stages:
126127 condition : " and(succeeded(), eq(variables['IsOfficialBuild'], 'true'))"
127128 dropServiceURI : ' https://devdiv.artifacts.visualstudio.com'
128129 buildNumber : ' $(ProfilingInputsDropName)'
129- sourcePath : ' $(Build.ArtifactStagingDirectory )\OptProf\ProfilingInputs'
130+ sourcePath : ' $(Build.StagingDirectory )\OptProf\ProfilingInputs'
130131 toLowerCase : false
131132 usePat : true
132133 dropMetadataContainerName : ' DropMetadata-ProfilingInputs'
133134
134135 - output : pipelineArtifact
135136 displayName : ' Publish NuGet.exe and VSIX as artifact'
136- targetPath : " $(Build.Repository.LocalPath) \\ artifacts \\ VS15"
137+ targetPath : " $(Build.StagingDirectory) \\ VS15"
137138 artifactName : " $(VsixPublishDir)"
138139 sbomBuildDropPath : $(Build.SourcesDirectory)/artifacts
139140
140141 - output : pipelineArtifact
141142 displayName : ' Publish symbols as pipeline artifacts'
142143 condition : " and(succeeded(), eq(variables['IsOfficialBuild'], 'true'))"
143- targetPath : " $(Build.Repository.LocalPath) \\ artifacts \\ symbolstoindex"
144+ targetPath : " $(Build.StagingDirectory) \\ symbolstoindex"
144145 artifactName : " symbols - $(RtmLabel)"
145146 sbomBuildDropPath : $(Build.SourcesDirectory)/artifacts
146147
@@ -149,7 +150,7 @@ stages:
149150 condition : " succeeded()"
150151 dropServiceURI : ' https://devdiv.artifacts.visualstudio.com'
151152 buildNumber : ' $(MicroBuild.ManifestDropName)'
152- sourcePath : " $(Build.Repository.LocalPath) \\ artifacts \\ VS15"
153+ sourcePath : " $(Build.StagingDirectory) \\ VS15"
153154 toLowerCase : false
154155 usePat : true
155156 dropMetadataContainerName : " DropMetadata-Product"
@@ -158,7 +159,7 @@ stages:
158159 displayName : ' LocValidation: Publish Logs as an artifact'
159160 condition : " succeededOrFailed()"
160161 artifactName : LocValidationLogs - Attempt $(System.JobAttempt)
161- targetPath : " $(Build.Repository.LocalPath) \\ logs \\ BuildValidatorLogs"
162+ targetPath : " $(Build.StagingDirectory) \\ BuildValidatorLogs"
162163 sbomEnabled : true
163164
164165 - output : pipelineArtifact
@@ -171,7 +172,7 @@ stages:
171172 - output : pipelineArtifact
172173 displayName : Publish SBOM manifest
173174 artifactName : $(ARTIFACT_NAME)
174- targetPath : " $(Build.SourcesDirectory)/artifacts/_manifest "
175+ targetPath : " $(Build.StagingDirectory)/sbom "
175176 sbomEnabled : false
176177
177178 steps :
@@ -209,24 +210,25 @@ stages:
209210 enabled : true
210211 optprof :
211212 enabled : false
213+ outputParentDirectory : ' $(Build.StagingDirectory)'
212214 outputs :
213215 - output : pipelineArtifact
214216 displayName : ' Publish nupkgs'
215217 condition : " succeeded()"
216- targetPath : " $(Build.Repository.LocalPath) \\ artifacts \\ $(NupkgOutputDir)"
218+ targetPath : " $(Build.StagingDirectory) \\ $(NupkgOutputDir)"
217219 artifactName : " nupkgs - $(RtmLabel)"
218220 sbomBuildDropPath : $(Build.SourcesDirectory)/artifacts
219221
220222 - output : pipelineArtifact
221223 displayName : ' Publish NuGet.exe and VSIX as artifact'
222- targetPath : " $(Build.Repository.LocalPath) \\ artifacts \\ VS15"
224+ targetPath : " $(Build.StagingDirectory) \\ VS15"
223225 artifactName : " $(VsixPublishDir)"
224226 sbomBuildDropPath : $(Build.SourcesDirectory)/artifacts
225227
226228 - output : pipelineArtifact
227229 displayName : ' Publish symbols as pipeline artifacts'
228230 condition : " and(succeeded(), eq(variables['IsOfficialBuild'], 'true'))"
229- targetPath : " $(Build.Repository.LocalPath) \\ artifacts \\ symbolstoindex"
231+ targetPath : " $(Build.StagingDirectory) \\ symbolstoindex"
230232 artifactName : " symbols - $(RtmLabel)"
231233 sbomBuildDropPath : $(Build.SourcesDirectory)/artifacts
232234
0 commit comments