@@ -88,6 +88,23 @@ steps:
88
88
workingDirectory : $(Pipeline.Workspace)
89
89
displayName : Update package properties with namespaces
90
90
91
+ # Component governance collates discovered dependencies from a combination of
92
+ # manifest files, splatted json output from CG detections, setup.py files, and other sources.
93
+ # At this point in the job, we have downloadeded package artifacts from 3 previous platform-specific build jobs,
94
+ # so the directory that will be published as packages_extended _already contains_ a collated set of dependencies by
95
+ # json file. When we attempt to publish the packages_extended artifact, CG re-collates data from the current job, but ALSO
96
+ # includes all the data from json files left behind by the previous jobs. While this doesn't result in double counting,
97
+ # we've been running into some nasty timeout issues of the CG running on this job specifically.
98
+ #
99
+ # Given that we've ALREADY RUN CG on the previous jobs, we can clean up these artifacts to avoid
100
+ # incurring an increased CG runtime. What's present within IS accurate.
101
+ - pwsh : |
102
+ Get-ChildItem -Path "$(Build.ArtifactStagingDirectory)" -Filter GovCompDisc* | % { Write-Host "Removing $($_.FullName)"; Remove-Item $_ }
103
+ Get-ChildItem -Path "$(Build.ArtifactStagingDirectory)" -Filter ScanTelemetry* | % { Write-Host "Removing $($_.FullName)"; Remove-Item $_ }
104
+ Remove-Item -Recurse -Force -Path "$(Build.ArtifactStagingDirectory)/bcde-output"
105
+ Remove-Item -Recurse -Force -Path "$(Build.ArtifactStagingDirectory)/_manifest"
106
+ displayName: Clean up Artifact Directory
107
+
91
108
- template : /eng/common/pipelines/templates/steps/publish-1es-artifact.yml
92
109
parameters :
93
110
ArtifactPath : ' $(Build.ArtifactStagingDirectory)'
0 commit comments