diff --git a/eng/pipelines/templates/stages/archetype-java-release.yml b/eng/pipelines/templates/stages/archetype-java-release.yml index a34f4caf0cf32..b7bef63a1464f 100644 --- a/eng/pipelines/templates/stages/archetype-java-release.yml +++ b/eng/pipelines/templates/stages/archetype-java-release.yml @@ -87,6 +87,8 @@ stages: Paths: - '${{ parameters.ServiceDirectory }}' - '**/*.xml' + - '!sdk/**/test-recordings' + - '!sdk/**/session-records' - task: UsePythonVersion@0 displayName: 'Use Python 3.6' @@ -275,7 +277,10 @@ stages: - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml parameters: Paths: + - '${{ parameters.ServiceDirectory }}' - '**/*.xml' + - '!sdk/**/test-recordings' + - '!sdk/**/session-records' - task: UsePythonVersion@0 displayName: 'Use Python 3.6'