fix: changed target path for builds (#1544)

* changed target path for builds

* removing specified dirs / files from build

* added .artifactignore

* correct ignore cond

* slash direction

---------

Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>
This commit is contained in:
hallvictoria 2024-07-24 14:38:08 -05:00 коммит произвёл GitHub
Родитель ee72ae417e
Коммит cdc01ec56b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
8 изменённых файлов: 32 добавлений и 7 удалений

7
.artifactignore Normal file
Просмотреть файл

@ -0,0 +1,7 @@
_manifest\**
bcde-output\**
Experiment_PipReport_**
GovCompDisc_Log_**
GovCompDisc_Manifest_**
GovCompDisc_Metadata_**
ScanTelemetry_**

Просмотреть файл

@ -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

Просмотреть файл

@ -7,3 +7,4 @@ python -m pip install --upgrade pip
python -m pip install .
python -m pip install . --no-compile --target "$BUILD_SOURCESDIRECTORY/deps"
cp .artifactignore "$BUILD_SOURCESDIRECTORY/deps"

Просмотреть файл

@ -7,3 +7,4 @@ python -m pip install --upgrade pip
python -m pip install .
python -m pip install . --no-compile --target "$BUILD_SOURCESDIRECTORY/deps"
cp .artifactignore "$BUILD_SOURCESDIRECTORY/deps"

Просмотреть файл

@ -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()

Просмотреть файл

@ -25,4 +25,9 @@ steps:
**
!grpc_tools/**/*
!grpcio_tools*/*
!build/**
!docs/**
!pack/**
!python/**
!tests/**
targetFolder: '$(Build.ArtifactStagingDirectory)'

Просмотреть файл

@ -25,4 +25,9 @@ steps:
**
!grpc_tools/**/*
!grpcio_tools*/*
!build/**
!docs/**
!pack/**
!python/**
!tests/**
targetFolder: '$(Build.ArtifactStagingDirectory)'

Просмотреть файл

@ -25,4 +25,9 @@ steps:
**
!grpc_tools\**\*
!grpcio_tools*\*
!build\**
!docs\**
!pack\**
!python\**
!tests\**
targetFolder: '$(Build.ArtifactStagingDirectory)'