Skip to content

Commit

Permalink
Continue if provisionator fails (#11068)
Browse files Browse the repository at this point in the history
* Continue if provisionator fails

* Try not fail with agent-cleanser

* Centralize the agent-cleanser

* Remove extra   agent-cleanser

* agent-cleanser is on provisionator.yml now
  • Loading branch information
rmarinho committed Nov 3, 2022
1 parent ad91996 commit cf97c55
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 30 deletions.
6 changes: 0 additions & 6 deletions eng/pipelines/common/device-tests-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ parameters:
provisionatorChannel: 'latest'

steps:
- template: agent-cleanser/v1.yml@xamarin-templates
parameters:
UninstallMono: false
UninstallXamarinMac: false
CleanseAgentToolsDotNet: true # Cleanse all .NET versions under the agent tools directory and use only those provisioned by the pipeline

- template: provision.yml
parameters:
platform: macos
Expand Down
6 changes: 0 additions & 6 deletions eng/pipelines/common/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ parameters:
artifact: 'nuget'

steps:
- ${{ if eq(parameters.platform, 'macOS') }}:
- template: agent-cleanser/v1.yml@xamarin-templates
parameters:
UninstallMono: false
UninstallXamarinMac: false
CleanseAgentToolsDotNet: true # Cleanse all .NET versions under the agent tools directory and use only those provisioned by the pipeline
- template: provision.yml
parameters:
platform: ${{ parameters.platform }}
Expand Down
8 changes: 8 additions & 0 deletions eng/pipelines/common/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ steps:
# Prepare macOS
- ${{ if eq(parameters.platform, 'macos') }}:
- template: agent-cleanser/v1.yml@xamarin-templates
parameters:
UninstallMono: false
UninstallXamarinMac: false
CleanseAgentToolsDotNet: true # Cleanse all .NET versions under the agent tools directory and use only those provisioned by the pipeline
SelfHealPowerShell: false
AUTH_TOKEN_GITHUB_COM: $(github--pat--vs-mobiletools-engineering-service2)
# Provision Xcode
- ${{ if ne(parameters.skipXcode, 'true') }}:
- task: xamops.azdevex.provisionator-task.provisionator@1
Expand All @@ -33,6 +40,7 @@ steps:
- task: xamops.azdevex.provisionator-task.provisionator@1
displayName: 'Provision Additional Software'
condition: eq(variables['provisioning'], 'true')
continueOnError: true
inputs:
provisioning_script: $(provisionator.path)
provisioning_extra_args: $(provisionator.extraArguments)
Expand Down
19 changes: 1 addition & 18 deletions eng/pipelines/handlers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,6 @@ stages:
- Agent.HasDevices -equals False
- Agent.IsPaired -equals False
steps:
- ${{ if eq(BuildPlatform.name, 'macOS') }}:
- template: agent-cleanser/v1.yml@xamarin-templates
parameters:
UninstallMono: false
UninstallXamarinMac: false
CleanseAgentToolsDotNet: true # Cleanse all .NET versions under the agent tools directory and use only those provisioned by the pipeline
- template: common/provision.yml
parameters:
platform: ${{ BuildPlatform.name }}
Expand Down Expand Up @@ -231,18 +225,13 @@ stages:
- Agent.HasDevices -equals False
- Agent.IsPaired -equals False
steps:
- ${{ if eq(BuildPlatform.name, 'macOS') }}:
- template: agent-cleanser/v1.yml@xamarin-templates
parameters:
UninstallMono: false
UninstallXamarinMac: false
CleanseAgentToolsDotNet: true # Cleanse all .NET versions under the agent tools directory and use only those provisioned by the pipeline
- template: common/provision.yml
parameters:
platform: ${{ BuildPlatform.name }}
poolName: ${{ BuildPlatform.poolName }}
provisioning: true
provisionatorChannel: ${{ parameters.provisionatorChannel }}

- task: DownloadBuildArtifacts@0
displayName: 'Download Packages'
inputs:
Expand Down Expand Up @@ -290,12 +279,6 @@ stages:
- Agent.HasDevices -equals False
- Agent.IsPaired -equals False
steps:
- ${{ if eq(BuildPlatform.name, 'macOS') }}:
- template: agent-cleanser/v1.yml@xamarin-templates
parameters:
UninstallMono: false
UninstallXamarinMac: false
CleanseAgentToolsDotNet: true # Cleanse all .NET versions under the agent tools directory and use only those provisioned by the pipeline
- template: common/provision.yml
parameters:
platform: ${{ BuildPlatform.name }}
Expand Down

0 comments on commit cf97c55

Please sign in to comment.