@@ -94,18 +94,18 @@ 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'
107- condition : " and(succeeded(), eq(variables['IsOfficialBuild'], 'true'))"
108- targetPath : " $(Build.Repository.LocalPath)\\ artifacts\\ $(NupkgOutputDir)"
108+ targetPath : " $(Build.StagingDirectory)\\ nupkgs"
109109 artifactName : " nupkgs - $(RtmLabel)"
110110 sbomBuildDropPath : $(Build.SourcesDirectory)/artifacts
111111
@@ -114,7 +114,7 @@ stages:
114114 condition : " succeeded()"
115115 dropServiceURI : ' https://devdiv.artifacts.visualstudio.com'
116116 buildNumber : ' $(RunSettingsDropName)'
117- sourcePath : ' artifacts \RunSettings'
117+ sourcePath : ' $(Build.StagingDirectory) \RunSettings'
118118 toLowerCase : false
119119 usePat : true
120120 dropMetadataContainerName : ' DropMetadata-RunSettings'
@@ -126,21 +126,20 @@ stages:
126126 condition : " and(succeeded(), eq(variables['IsOfficialBuild'], 'true'))"
127127 dropServiceURI : ' https://devdiv.artifacts.visualstudio.com'
128128 buildNumber : ' $(ProfilingInputsDropName)'
129- sourcePath : ' $(Build.ArtifactStagingDirectory )\OptProf\ProfilingInputs'
129+ sourcePath : ' $(Build.StagingDirectory )\OptProf\ProfilingInputs'
130130 toLowerCase : false
131131 usePat : true
132132 dropMetadataContainerName : ' DropMetadata-ProfilingInputs'
133133
134134 - output : pipelineArtifact
135135 displayName : ' Publish NuGet.exe and VSIX as artifact'
136- targetPath : " $(Build.Repository.LocalPath) \\ artifacts \\ VS15"
136+ targetPath : " $(Build.StagingDirectory) \\ VS15"
137137 artifactName : " $(VsixPublishDir)"
138138 sbomBuildDropPath : $(Build.SourcesDirectory)/artifacts
139139
140140 - output : pipelineArtifact
141141 displayName : ' Publish symbols as pipeline artifacts'
142- condition : " and(succeeded(), eq(variables['IsOfficialBuild'], 'true'))"
143- targetPath : " $(Build.Repository.LocalPath)\\ artifacts\\ symbolstoindex"
142+ targetPath : " $(Build.StagingDirectory)\\ symbolstoindex"
144143 artifactName : " symbols - $(RtmLabel)"
145144 sbomBuildDropPath : $(Build.SourcesDirectory)/artifacts
146145
@@ -149,7 +148,7 @@ stages:
149148 condition : " succeeded()"
150149 dropServiceURI : ' https://devdiv.artifacts.visualstudio.com'
151150 buildNumber : ' $(MicroBuild.ManifestDropName)'
152- sourcePath : " $(Build.Repository.LocalPath) \\ artifacts \\ VS15"
151+ sourcePath : " $(Build.StagingDirectory) \\ VS15"
153152 toLowerCase : false
154153 usePat : true
155154 dropMetadataContainerName : " DropMetadata-Product"
@@ -158,7 +157,7 @@ stages:
158157 displayName : ' LocValidation: Publish Logs as an artifact'
159158 condition : " succeededOrFailed()"
160159 artifactName : LocValidationLogs - Attempt $(System.JobAttempt)
161- targetPath : " $(Build.Repository.LocalPath) \\ logs \\ BuildValidatorLogs"
160+ targetPath : " $(Build.StagingDirectory) \\ BuildValidatorLogs"
162161 sbomEnabled : true
163162
164163 - output : pipelineArtifact
@@ -171,7 +170,7 @@ stages:
171170 - output : pipelineArtifact
172171 displayName : Publish SBOM manifest
173172 artifactName : $(ARTIFACT_NAME)
174- targetPath : " $(Build.SourcesDirectory)/artifacts/_manifest "
173+ targetPath : " $(Build.StagingDirectory)/sbom "
175174 sbomEnabled : false
176175
177176 steps :
@@ -209,24 +208,24 @@ stages:
209208 enabled : true
210209 optprof :
211210 enabled : false
211+ outputParentDirectory : ' $(Build.StagingDirectory)'
212212 outputs :
213213 - output : pipelineArtifact
214214 displayName : ' Publish nupkgs'
215215 condition : " succeeded()"
216- targetPath : " $(Build.Repository.LocalPath) \\ artifacts \\ $(NupkgOutputDir)"
216+ targetPath : " $(Build.StagingDirectory) \\ $(NupkgOutputDir)"
217217 artifactName : " nupkgs - $(RtmLabel)"
218218 sbomBuildDropPath : $(Build.SourcesDirectory)/artifacts
219219
220220 - output : pipelineArtifact
221221 displayName : ' Publish NuGet.exe and VSIX as artifact'
222- targetPath : " $(Build.Repository.LocalPath) \\ artifacts \\ VS15"
222+ targetPath : " $(Build.StagingDirectory) \\ VS15"
223223 artifactName : " $(VsixPublishDir)"
224224 sbomBuildDropPath : $(Build.SourcesDirectory)/artifacts
225225
226226 - output : pipelineArtifact
227227 displayName : ' Publish symbols as pipeline artifacts'
228- condition : " and(succeeded(), eq(variables['IsOfficialBuild'], 'true'))"
229- targetPath : " $(Build.Repository.LocalPath)\\ artifacts\\ symbolstoindex"
228+ targetPath : " $(Build.StagingDirectory)\\ symbolstoindex"
230229 artifactName : " symbols - $(RtmLabel)"
231230 sbomBuildDropPath : $(Build.SourcesDirectory)/artifacts
232231
0 commit comments