Skip to content

Commit 8b9af73

Browse files
authored
[release/10.0.1xx-preview6] Update pipelines for release (#30511)
* [ci] Fix provision profiles (#30470) * [ai] Remove github mcp * [ci] Use certs/profile azdo task * Fix * again * try again * Access passworkd * again * legacy * needs to work like this * try again * try just mauiu-provisionator * [ci] clean * We need this as variable group from key vault doesn t work * Add comments * Try to always run on devdiv * fix * remove legacy * Maybe try fix on Azure pipelines hosts * Fix variable * Add continueOnError: true * Remove old provisioning # Conflicts: # eng/pipelines/common/provision.yml # eng/pipelines/common/variables.yml * [ci] Use new maui release variable group (#30146) * [ci] Use new maui release variabel group [ci] Remove maui-secrets Don t reboot devices [ci] remove extra pat and format Use new variable [ci] Move back to the old pat name Add provisionator variable group update provisionator token Remove extra variable try again Fix override oon steps of github token add variable for uri More fixes We just need the pat for maui release * UseProvisionator * needs to be used on xamarin public # Conflicts: # eng/pipelines/common/provision.yml # eng/pipelines/common/variables.yml # eng/pipelines/handlers.yml * Fix merge * [ci] Remove reboot (#30497)
1 parent 2a04af9 commit 8b9af73

File tree

12 files changed

+981
-1056
lines changed

12 files changed

+981
-1056
lines changed

.vscode/mcp.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,2 @@
11
{
2-
"inputs": [
3-
{
4-
"type": "promptString",
5-
"id": "github-key",
6-
"password": true, // Encrypted at-rest
7-
"description": "GitHub PAT"
8-
}
9-
],
10-
"servers": {
11-
"github": {
12-
"command": "docker",
13-
"args": [
14-
"run",
15-
"-i",
16-
"--rm",
17-
"-e",
18-
"GITHUB_PERSONAL_ACCESS_TOKEN",
19-
"ghcr.io/github/github-mcp-server"
20-
],
21-
"env": {
22-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github-key}"
23-
}
24-
}
25-
}
262
}

eng/pipelines/common/device-tests-steps.yml

Lines changed: 155 additions & 174 deletions
Large diffs are not rendered by default.

eng/pipelines/common/pack.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ parameters:
3030
- name: nugetFolder
3131
type: string
3232
default: 'artifacts'
33-
33+
3434
- name: prepareSteps
3535
type: stepList
3636
default: []
@@ -39,10 +39,6 @@ parameters:
3939
type: stepList
4040
default: []
4141

42-
- name: gitHubToken
43-
type: string
44-
default: $(github--pat--vs-mobiletools-engineering-service2)
45-
4642
- name: checkoutDirectory
4743
type: string
4844
default: $(System.DefaultWorkingDirectory)
@@ -57,8 +53,9 @@ parameters:
5753

5854
- name: buildConfiguration
5955
type: string
60-
default:
61-
56+
default:
57+
58+
6259
- name: runAsPublic
6360
type: boolean
6461
default: false

eng/pipelines/common/provision.yml

Lines changed: 162 additions & 155 deletions
Large diffs are not rendered by default.

eng/pipelines/common/ui-tests-build-sample.yml

Lines changed: 71 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -8,90 +8,89 @@ parameters:
88
provisionatorChannel: 'latest'
99
agentPoolAccessToken: ''
1010
skipProvisioning: true
11-
configuration : "Release"
11+
configuration: "Release"
1212
testFilter: ''
1313
runtimeVariant: 'Mono'
1414

1515
steps:
16-
- ${{ if eq(parameters.platform, 'ios')}}:
17-
- bash: |
18-
chmod +x $(System.DefaultWorkingDirectory)/eng/scripts/clean-bot.sh
19-
$(System.DefaultWorkingDirectory)/eng/scripts/clean-bot.sh
20-
displayName: 'Clean bot'
21-
continueOnError: true
22-
timeoutInMinutes: 60
23-
24-
- template: provision.yml
25-
parameters:
26-
# FIXME: 'Build the MSBuild Tasks' step fails for net9.0-android35 without API 35
27-
skipAndroidSdks: false
28-
skipXcode: ${{ or(eq(parameters.platform, 'android'), eq(parameters.platform, 'windows')) }}
29-
provisionatorChannel: ${{ parameters.provisionatorChannel }}
30-
${{ if parameters.skipProvisioning }}:
31-
skipProvisionator: true
32-
${{ else }}:
33-
skipProvisionator: false
34-
gitHubToken: $(github--pat--vs-mobiletools-engineering-service2)
35-
36-
- task: PowerShell@2
37-
condition: ne('${{ parameters.platform }}' , 'windows')
38-
inputs:
39-
targetType: 'inline'
40-
script: |
41-
defaults write -g NSAutomaticCapitalizationEnabled -bool false
42-
defaults write -g NSAutomaticTextCompletionEnabled -bool false
43-
defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false
44-
displayName: "Modify defaults"
16+
- ${{ if eq(parameters.platform, 'ios')}}:
17+
- bash: |
18+
chmod +x $(System.DefaultWorkingDirectory)/eng/scripts/clean-bot.sh
19+
$(System.DefaultWorkingDirectory)/eng/scripts/clean-bot.sh
20+
displayName: 'Clean bot'
4521
continueOnError: true
22+
timeoutInMinutes: 60
4623
47-
- pwsh: ./build.ps1 --target=dotnet --configuration="${{ parameters.configuration }}" --verbosity=diagnostic
48-
displayName: 'Install .NET'
49-
retryCountOnTaskFailure: 2
50-
env:
51-
DOTNET_TOKEN: $(dotnetbuilds-internal-container-read-token)
52-
PRIVATE_BUILD: $(PrivateBuild)
24+
- template: provision.yml
25+
parameters:
26+
# FIXME: 'Build the MSBuild Tasks' step fails for net9.0-android35 without API 35
27+
skipAndroidSdks: false
28+
skipXcode: ${{ or(eq(parameters.platform, 'android'), eq(parameters.platform, 'windows')) }}
29+
provisionatorChannel: ${{ parameters.provisionatorChannel }}
30+
${{ if parameters.skipProvisioning }}:
31+
skipProvisionator: true
32+
${{ else }}:
33+
skipProvisionator: false
5334

54-
- pwsh: echo "##vso[task.prependpath]$(DotNet.Dir)"
55-
displayName: 'Add .NET to PATH'
35+
- task: PowerShell@2
36+
condition: ne('${{ parameters.platform }}' , 'windows')
37+
inputs:
38+
targetType: 'inline'
39+
script: |
40+
defaults write -g NSAutomaticCapitalizationEnabled -bool false
41+
defaults write -g NSAutomaticTextCompletionEnabled -bool false
42+
defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false
43+
displayName: "Modify defaults"
44+
continueOnError: true
5645

57-
- pwsh: |
58-
Get-Content $PSCommandPath
59-
./build.ps1 --target=uitests-apphost --configuration="${{ parameters.configuration }}" --${{ parameters.platform }} --verbosity=diagnostic --usenuget=false --runtimevariant="${{ parameters.runtimeVariant }}"
60-
displayName: 'Build the samples'
46+
- pwsh: ./build.ps1 --target=dotnet --configuration="${{ parameters.configuration }}" --verbosity=diagnostic
47+
displayName: 'Install .NET'
48+
retryCountOnTaskFailure: 2
49+
env:
50+
DOTNET_TOKEN: $(dotnetbuilds-internal-container-read-token)
51+
PRIVATE_BUILD: $(PrivateBuild)
6152

62-
- bash: |
63-
if [ -f "$HOME/Library/Logs/CoreSimulator/*" ]; then rm -r $HOME/Library/Logs/CoreSimulator/*; fi
64-
if [ -f "$HOME/Library/Logs/DiagnosticReports/*" ]; then rm -r $HOME/Library/Logs/DiagnosticReports/*; fi
65-
displayName: Delete Old Simulator Logs
66-
condition: ${{ eq(parameters.platform, 'ios') }}
67-
continueOnError: true
53+
- pwsh: echo "##vso[task.prependpath]$(DotNet.Dir)"
54+
displayName: 'Add .NET to PATH'
55+
56+
- pwsh: |
57+
Get-Content $PSCommandPath
58+
./build.ps1 --target=uitests-apphost --configuration="${{ parameters.configuration }}" --${{ parameters.platform }} --verbosity=diagnostic --usenuget=false --runtimevariant="${{ parameters.runtimeVariant }}"
59+
displayName: 'Build the samples'
60+
61+
- bash: |
62+
if [ -f "$HOME/Library/Logs/CoreSimulator/*" ]; then rm -r $HOME/Library/Logs/CoreSimulator/*; fi
63+
if [ -f "$HOME/Library/Logs/DiagnosticReports/*" ]; then rm -r $HOME/Library/Logs/DiagnosticReports/*; fi
64+
displayName: Delete Old Simulator Logs
65+
condition: ${{ eq(parameters.platform, 'ios') }}
66+
continueOnError: true
67+
68+
- publish: $(System.DefaultWorkingDirectory)/artifacts/bin
69+
condition: and(ne('${{ parameters.platform }}' , 'windows'), ne('${{ parameters.runtimeVariant }}' , 'NativeAOT'), succeeded())
70+
artifact: ui-tests-samples
6871

69-
- publish: $(System.DefaultWorkingDirectory)/artifacts/bin
70-
condition: and(ne('${{ parameters.platform }}' , 'windows'), ne('${{ parameters.runtimeVariant }}' , 'NativeAOT'), succeeded())
71-
artifact: ui-tests-samples
72-
73-
- publish: $(System.DefaultWorkingDirectory)/artifacts/bin
74-
condition: and(ne('${{ parameters.platform }}' , 'windows'), eq('${{ parameters.runtimeVariant }}' , 'NativeAOT'), succeeded())
75-
artifact: ui-tests-samples-nativeaot
72+
- publish: $(System.DefaultWorkingDirectory)/artifacts/bin
73+
condition: and(ne('${{ parameters.platform }}' , 'windows'), eq('${{ parameters.runtimeVariant }}' , 'NativeAOT'), succeeded())
74+
artifact: ui-tests-samples-nativeaot
7675

77-
- publish: $(System.DefaultWorkingDirectory)/artifacts/bin
78-
condition: and(eq('${{ parameters.platform }}' , 'windows'), succeeded())
79-
artifact: ui-tests-samples-windows
76+
- publish: $(System.DefaultWorkingDirectory)/artifacts/bin
77+
condition: and(eq('${{ parameters.platform }}' , 'windows'), succeeded())
78+
artifact: ui-tests-samples-windows
8079

81-
- publish: $(System.DefaultWorkingDirectory)/artifacts/bin
82-
condition: and(ne('${{ parameters.platform }}' , 'windows'), ne('${{ parameters.runtimeVariant }}' , 'NativeAOT'), failed())
83-
artifact: ui-tests-samples_failed_$(System.JobAttempt)
80+
- publish: $(System.DefaultWorkingDirectory)/artifacts/bin
81+
condition: and(ne('${{ parameters.platform }}' , 'windows'), ne('${{ parameters.runtimeVariant }}' , 'NativeAOT'), failed())
82+
artifact: ui-tests-samples_failed_$(System.JobAttempt)
8483

85-
- publish: $(System.DefaultWorkingDirectory)/artifacts/bin
86-
condition: and(ne('${{ parameters.platform }}' , 'windows'), eq('${{ parameters.runtimeVariant }}' , 'NativeAOT'), failed())
87-
artifact: ui-tests-samples-nativeaot_failed_$(System.JobAttempt)
84+
- publish: $(System.DefaultWorkingDirectory)/artifacts/bin
85+
condition: and(ne('${{ parameters.platform }}' , 'windows'), eq('${{ parameters.runtimeVariant }}' , 'NativeAOT'), failed())
86+
artifact: ui-tests-samples-nativeaot_failed_$(System.JobAttempt)
8887

89-
- publish: $(System.DefaultWorkingDirectory)/artifacts/bin
90-
condition: and(eq('${{ parameters.platform }}' , 'windows'), failed())
91-
artifact: ui-tests-samples-windows_failed_$(System.JobAttempt)
88+
- publish: $(System.DefaultWorkingDirectory)/artifacts/bin
89+
condition: and(eq('${{ parameters.platform }}' , 'windows'), failed())
90+
artifact: ui-tests-samples-windows_failed_$(System.JobAttempt)
9291

93-
- task: PublishBuildArtifacts@1
94-
displayName: Publish Artifacts
95-
condition: always()
96-
inputs:
97-
artifactName: '$(Agent.JobName) (attempt $(System.JobAttempt))'
92+
- task: PublishBuildArtifacts@1
93+
displayName: Publish Artifacts
94+
condition: always()
95+
inputs:
96+
artifactName: '$(Agent.JobName) (attempt $(System.JobAttempt))'

0 commit comments

Comments
 (0)