From d9db65d56b92288f4a4f48b3063f07f4a7f4999a Mon Sep 17 00:00:00 2001 From: Michael7371 <40476797+Michael7371@users.noreply.github.com> Date: Tue, 11 Feb 2025 16:29:41 -0700 Subject: [PATCH] reduce the amount of data included in copy step --- .azure/README.md | 8 ++++++-- .azure/azure-pipelines.yml | 9 +++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.azure/README.md b/.azure/README.md index eb0547472..e61ca2f3e 100644 --- a/.azure/README.md +++ b/.azure/README.md @@ -31,8 +31,12 @@ The pipeline automatically triggers when: ## Pipeline Steps 1. **Copy Files** - - Copies all project files to the artifact staging directory - - Ensures all necessary source code is included in the artifact + - Copies project files to the artifact staging directory + - Excludes certain files/directories by default: + - `.git` directories + - `data` directories + - `docs` directories + - Markdown (`.md`) files 2. **Publish Artifact** - Creates an artifact named 'jpo-ode' diff --git a/.azure/azure-pipelines.yml b/.azure/azure-pipelines.yml index 7dec367fd..4d5879279 100644 --- a/.azure/azure-pipelines.yml +++ b/.azure/azure-pipelines.yml @@ -18,8 +18,13 @@ pool: steps: - task: CopyFiles@2 inputs: - SourceFolder: '../' - Contents: '**' + SourceFolder: '$(Build.SourcesDirectory)' + Contents: | + ** + !**/.git/** + !**/data/** + !**/docs/** + !**/*.md TargetFolder: '$(Build.ArtifactStagingDirectory)' # Publish the artifacts directory for consumption in publish pipeline