diff --git a/.artifactignore b/.artifactignore new file mode 100644 index 00000000..827a68eb --- /dev/null +++ b/.artifactignore @@ -0,0 +1,7 @@ +_manifest\** +bcde-output\** +Experiment_PipReport_** +GovCompDisc_Log_** +GovCompDisc_Manifest_** +GovCompDisc_Metadata_** +ScanTelemetry_** \ No newline at end of file diff --git a/eng/templates/official/jobs/build-artifacts.yml b/eng/templates/official/jobs/build-artifacts.yml index f3577788..631115b4 100644 --- a/eng/templates/official/jobs/build-artifacts.yml +++ b/eng/templates/official/jobs/build-artifacts.yml @@ -28,7 +28,7 @@ jobs: outputParentDirectory: $(Build.ArtifactStagingDirectory) outputs: - output: pipelineArtifact - targetPath: $(Build.SourcesDirectory) + targetPath: $(Build.ArtifactStagingDirectory) artifactName: "$(pythonVersion)_WINDOWS_X64" steps: - template: ../../../../pack/templates/win_env_gen.yml @@ -66,7 +66,7 @@ jobs: outputParentDirectory: $(Build.ArtifactStagingDirectory) outputs: - output: pipelineArtifact - targetPath: $(Build.SourcesDirectory) + targetPath: $(Build.ArtifactStagingDirectory) artifactName: "$(pythonVersion)_WINDOWS_X86" steps: - template: ../../../../pack/templates/win_env_gen.yml @@ -104,7 +104,7 @@ jobs: outputParentDirectory: $(Build.ArtifactStagingDirectory) outputs: - output: pipelineArtifact - targetPath: $(Build.SourcesDirectory) + targetPath: $(Build.ArtifactStagingDirectory) artifactName: "$(pythonVersion)_LINUX_X64" steps: - template: ../../../../pack/templates/nix_env_gen.yml @@ -141,7 +141,7 @@ jobs: outputParentDirectory: $(Build.ArtifactStagingDirectory) outputs: - output: pipelineArtifact - targetPath: $(Build.SourcesDirectory) + targetPath: $(Build.ArtifactStagingDirectory) artifactName: "$(pythonVersion)_OSX_X64" steps: - template: ../../../../pack/templates/nix_env_gen.yml @@ -172,7 +172,7 @@ jobs: outputParentDirectory: $(Build.ArtifactStagingDirectory) outputs: - output: pipelineArtifact - targetPath: $(Build.SourcesDirectory) + targetPath: $(Build.ArtifactStagingDirectory) artifactName: "$(pythonVersion)_OSX_ARM4" steps: - template: ../../../../pack/templates/macos_64_env_gen.yml diff --git a/pack/scripts/mac_arm64_deps.sh b/pack/scripts/mac_arm64_deps.sh index 33d798d6..f0490ed0 100644 --- a/pack/scripts/mac_arm64_deps.sh +++ b/pack/scripts/mac_arm64_deps.sh @@ -6,4 +6,5 @@ python -m pip install --upgrade pip python -m pip install . -python -m pip install . --no-compile --target "$BUILD_SOURCESDIRECTORY/deps" \ No newline at end of file +python -m pip install . --no-compile --target "$BUILD_SOURCESDIRECTORY/deps" +cp .artifactignore "$BUILD_SOURCESDIRECTORY/deps" \ No newline at end of file diff --git a/pack/scripts/nix_deps.sh b/pack/scripts/nix_deps.sh index 33d798d6..f0490ed0 100644 --- a/pack/scripts/nix_deps.sh +++ b/pack/scripts/nix_deps.sh @@ -6,4 +6,5 @@ python -m pip install --upgrade pip python -m pip install . -python -m pip install . --no-compile --target "$BUILD_SOURCESDIRECTORY/deps" \ No newline at end of file +python -m pip install . --no-compile --target "$BUILD_SOURCESDIRECTORY/deps" +cp .artifactignore "$BUILD_SOURCESDIRECTORY/deps" \ No newline at end of file diff --git a/pack/scripts/win_deps.ps1 b/pack/scripts/win_deps.ps1 index d674915d..b0872e40 100644 --- a/pack/scripts/win_deps.ps1 +++ b/pack/scripts/win_deps.ps1 @@ -7,3 +7,4 @@ python -m pip install . $depsPath = Join-Path -Path $env:BUILD_SOURCESDIRECTORY -ChildPath "deps" python -m pip install . azure-functions --no-compile --target $depsPath.ToString() +Copy-Item -Path ".artifactignore" -Destination $depsPath.ToString() diff --git a/pack/templates/macos_64_env_gen.yml b/pack/templates/macos_64_env_gen.yml index d871633e..56b8b23c 100644 --- a/pack/templates/macos_64_env_gen.yml +++ b/pack/templates/macos_64_env_gen.yml @@ -25,4 +25,9 @@ steps: ** !grpc_tools/**/* !grpcio_tools*/* + !build/** + !docs/** + !pack/** + !python/** + !tests/** targetFolder: '$(Build.ArtifactStagingDirectory)' diff --git a/pack/templates/nix_env_gen.yml b/pack/templates/nix_env_gen.yml index ae253ca3..9da26b1b 100644 --- a/pack/templates/nix_env_gen.yml +++ b/pack/templates/nix_env_gen.yml @@ -25,4 +25,9 @@ steps: ** !grpc_tools/**/* !grpcio_tools*/* + !build/** + !docs/** + !pack/** + !python/** + !tests/** targetFolder: '$(Build.ArtifactStagingDirectory)' diff --git a/pack/templates/win_env_gen.yml b/pack/templates/win_env_gen.yml index 1699d393..2bd38ac7 100644 --- a/pack/templates/win_env_gen.yml +++ b/pack/templates/win_env_gen.yml @@ -25,4 +25,9 @@ steps: ** !grpc_tools\**\* !grpcio_tools*\* + !build\** + !docs\** + !pack\** + !python\** + !tests\** targetFolder: '$(Build.ArtifactStagingDirectory)'