Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SkipCheckoutNone parameter name for sparse checkout #26007

Merged
merged 1 commit into from
Sep 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions eng/pipelines/docindex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
# Sync docs repo onboarding files/folders
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
SkipDefaultCheckout: true
SkipCheckoutNone: true
Paths:
- ci-configs/
- metadata/
Expand All @@ -57,8 +57,8 @@ jobs:
filePath: eng/common/scripts/Service-Level-Readme-Automation.ps1
arguments: >-
-DocRepoLocation $(DocRepoLocation)
-TenantId '$(opensource-aad-tenant-id)'
-ClientId '$(opensource-aad-app-id)'
-TenantId '$(opensource-aad-tenant-id)'
-ClientId '$(opensource-aad-app-id)'
-ClientSecret '$(opensource-aad-secret)'
displayName: Generate Service Level Readme

Expand Down Expand Up @@ -111,8 +111,8 @@ jobs:
filePath: eng/common/scripts/Service-Level-Readme-Automation.ps1
arguments: >-
-DocRepoLocation $(DocRepoLocation)
-TenantId '$(opensource-aad-tenant-id)'
-ClientId '$(opensource-aad-app-id)'
-TenantId '$(opensource-aad-tenant-id)'
-ClientId '$(opensource-aad-app-id)'
-ClientSecret '$(opensource-aad-secret)'
displayName: Generate Service Level Readme
- task: Powershell@2
Expand Down
12 changes: 6 additions & 6 deletions eng/pipelines/templates/jobs/ci.conda.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,25 @@ jobs:
versionSpec: $(PythonVersion)

- pwsh: |
# due to faulty deployed scripts/how the path gets manipulated by conda actions on
# due to faulty deployed scripts/how the path gets manipulated by conda actions on
# ubuntu and mac, we can't rely on bin/scripts being referenced correctly. see
# https://github.com/MicrosoftDocs/azure-devops-docs/issues/3812
$activateMethod = "source $($env:CONDA)/bin/activate"

# pypy3 is not a true python executable. in conda-land, we need to call it using pypy3, NOT python

# on windows, we need to add "--user" as otherwise pip won't successfully install/uninstall due to
# on windows, we need to add "--user" as otherwise pip won't successfully install/uninstall due to
# how windows holds reservation on pip.exe. this is unnecessary on ubuntu/mac.
$requirementSuffix = ""

# we always want to prepend the path with conda bin
# we always want to prepend the path with conda bin
Write-Host "##vso[task.prependpath]]$($env:CONDA)/bin"

if ($IsWindows) {
# powershell does not have an equivalent of call/source, which is necessary when
# using conda in azure devops. Note that we use `activate` natively here, as
# a later path prepend of the /scripts directory actually works.
$activateMethod = "call activate"
$activateMethod = "call activate"
$requirementSuffix = " --user"

# on windows only, need to prepend with the scripts directory as well
Expand All @@ -116,7 +116,7 @@ jobs:
else {
Write-Host "##vso[task.setvariable variable=PyVersion]python=$(PythonVersion)"
}

# we will use these variables extensively later
Write-Host "##vso[task.setvariable variable=activate.method]$activateMethod"
Write-Host "##vso[task.setvariable variable=requirement.suffix]$requirementSuffix"
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
- Name: "Azure/azure-sdk-for-python"
Commitish: "${{ checkout.Package }}_${{ checkout.Version }}"
WorkingDirectory: "$(conda.build)"
SkipDefaultCheckout: true
SkipCheckoutNone: true

- script: |
echo "$(activate.method) ${{ artifact.name }}"
Expand Down
6 changes: 3 additions & 3 deletions eng/pipelines/templates/steps/get-tagged-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ parameters:
- name: Version
type: string
default: ''

steps:
- pwsh: |
$targetPath = "$(Agent.TempDirectory)/${{ parameters.Package }}"
Expand All @@ -28,11 +28,11 @@ steps:
- Name: "Azure/azure-sdk-for-python"
Commitish: "${{ parameters.Package }}_${{ parameters.Version }}"
WorkingDirectory: "$(Package.Clone)"
SkipDefaultCheckout: true
SkipCheckoutNone: true

- pwsh: |
$pathForCopy = Join-Path -Path "$(Package.Clone)" -ChildPath "${{ parameters.CheckoutPath }}/${{ parameters.Package }}"

Write-Host $pathForCopy
Write-Host ${{ parameters.DestinationDirectory }}

Expand Down