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 native azdo command for checkout #61965

Merged
merged 2 commits into from
Jun 18, 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
8 changes: 4 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ jobs:
demands: ImageOverride -equals Build.Windows.Amd64.VS2022.Pre.Open
timeoutInMinutes: 90
steps:
- template: eng/pipelines/checkout-windows-task.yml
- template: eng/pipelines/checkout-task.yml

- script: eng/test-determinism.cmd -configuration Debug
displayName: Build - Validate determinism
Expand All @@ -202,7 +202,7 @@ jobs:
demands: ImageOverride -equals Build.Windows.Amd64.VS2022.Pre.Open
timeoutInMinutes: 90
steps:
- template: eng/pipelines/checkout-windows-task.yml
- template: eng/pipelines/checkout-task.yml

- script: eng/test-build-correctness.cmd -configuration Release -enableDumps
displayName: Build - Validate correctness
Expand Down Expand Up @@ -233,7 +233,7 @@ jobs:
vmImage: ubuntu-20.04
timeoutInMinutes: 10
steps:
- template: eng/pipelines/checkout-unix-task.yml
- template: eng/pipelines/checkout-task.yml

- pwsh: eng/todo-check.ps1
displayName: Validate TODO/PROTOTYPE comments are not present
Expand All @@ -244,7 +244,7 @@ jobs:
demands: ImageOverride -equals Build.Windows.Amd64.VS2022.Pre.Open
timeoutInMinutes: 90
steps:
- template: eng/pipelines/checkout-windows-task.yml
- template: eng/pipelines/checkout-task.yml

- task: PowerShell@2
displayName: Restore
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/build-unix-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
timeoutInMinutes: 40

steps:
- template: checkout-unix-task.yml
- template: checkout-task.yml

- script: ./eng/build.sh --ci --restore --prepareMachine --binaryLog --configuration ${{ parameters.configuration }}
displayName: Restore
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/build-windows-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
timeoutInMinutes: 40

steps:
- template: checkout-windows-task.yml
- template: checkout-task.yml

- task: PowerShell@2
displayName: Restore
Expand Down
5 changes: 5 additions & 0 deletions eng/pipelines/checkout-task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Shallow checkout sources on Windows
steps:
- checkout: self
clean: true
fetchDepth: 1 # Fetch only one commit
11 changes: 0 additions & 11 deletions eng/pipelines/checkout-unix-task.yml

This file was deleted.

11 changes: 0 additions & 11 deletions eng/pipelines/checkout-windows-task.yml

This file was deleted.

2 changes: 1 addition & 1 deletion eng/pipelines/test-integration-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ parameters:

steps:
- ${{ if eq(parameters.shallowCheckout, true) }}:
- template: checkout-windows-task.yml
- template: checkout-task.yml

- task: PowerShell@2
displayName: Build and Test
Expand Down