Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.

Commit 4c50a36

Browse files
committed
We don't need the prepare step
1 parent f73ff83 commit 4c50a36

File tree

1 file changed

+19
-30
lines changed

1 file changed

+19
-30
lines changed

azure-pipelines.yml

Lines changed: 19 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,41 +27,31 @@ resources:
2727
endpoint: xamarin
2828

2929
stages:
30-
- stage: prepare
31-
displayName: Prepare Variables
32-
jobs:
33-
- job: prepare
34-
displayName: Prepare Build
35-
pool:
36-
vmImage: ubuntu-latest
37-
steps:
38-
- checkout: none
39-
- pwsh: |
40-
$pr = "pr." + $env:SYSTEM_PULLREQUEST_PULLREQUESTNUMBER
41-
$nuget = $env:BASE_VERSION + "-" + $pr + "." + $env:BUILD_NUMBER
42-
Write-Host "Preview label: $pr"
43-
Write-Host "NuGet version: $nuget"
44-
Write-Host "##vso[task.setvariable variable=PREVIEW_LABEL]$pr"
45-
Write-Host "##vso[task.setvariable variable=NUGET_VERSION]$nuget"
46-
displayName: Use a special preview label for PRs
47-
condition: eq(variables['Build.Reason'], 'PullRequest')
48-
- pwsh: |
49-
$tagVersion = $env:BUILD_SOURCEBRANCHNAME
50-
Write-Host "Tag version: $tagVersion"
51-
Write-Host "##vso[task.setvariable variable=NUGET_VERSION]$tagVersion"
52-
displayName: Override version for tags
53-
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
54-
- pwsh: |
55-
Write-Host "##vso[build.updatebuildnumber]$env:NUGET_VERSION"
56-
displayName: Update the build number with a more readable one
57-
5830
- stage: build
5931
displayName: Build Library
60-
dependsOn: [ 'prepare' ]
6132
jobs:
6233
- template: .ci/build.yml@components
6334
parameters:
6435
areaPath: 'DevDiv\Xamarin SDK\Build and Tools'
36+
preBuildSteps:
37+
- pwsh: |
38+
$pr = "pr." + $env:SYSTEM_PULLREQUEST_PULLREQUESTNUMBER
39+
$nuget = $env:BASE_VERSION + "-" + $pr + "." + $env:BUILD_NUMBER
40+
Write-Host "Preview label: $pr"
41+
Write-Host "NuGet version: $nuget"
42+
Write-Host "##vso[task.setvariable variable=PREVIEW_LABEL]$pr"
43+
Write-Host "##vso[task.setvariable variable=NUGET_VERSION]$nuget"
44+
displayName: Use a special preview label for PRs
45+
condition: eq(variables['Build.Reason'], 'PullRequest')
46+
- pwsh: |
47+
$tagVersion = $env:BUILD_SOURCEBRANCHNAME
48+
Write-Host "Tag version: $tagVersion"
49+
Write-Host "##vso[task.setvariable variable=NUGET_VERSION]$tagVersion"
50+
displayName: Override version for tags
51+
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
52+
- pwsh: |
53+
Write-Host "##vso[build.updatebuildnumber]$env:NUGET_VERSION"
54+
displayName: Update the build number with a more readable one
6555
6656
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
6757
- stage: signing
@@ -74,7 +64,6 @@ stages:
7464

7565
- stage: devicetests
7666
displayName: Device Tests
77-
dependsOn: [ 'prepare' ]
7867
jobs:
7968
- job: devicetests_uwp
8069
displayName: UWP

0 commit comments

Comments
 (0)