diff --git a/eng/pipelines/templates/jobs/pack.yml b/eng/pipelines/templates/jobs/pack.yml index 6d8b2946bf6..49af5d460d7 100644 --- a/eng/pipelines/templates/jobs/pack.yml +++ b/eng/pipelines/templates/jobs/pack.yml @@ -12,6 +12,10 @@ jobs: - job: Pack displayName: "Pack Crates" timeoutInMinutes: 90 + variables: + ComponentDetection.SourcePath: $(Build.SourcesDirectory) + # Exclude non-shipping samples and tests. + ComponentDetection.DirectoryExclusionPatterns: '$(Build.SourcesDirectory)/samples/**;$(Build.SourcesDirectory)/**/tests/**' pool: name: $(LINUXPOOL)