perf: add error msg when applet task failed

pull/14359/head
Eric 1 month ago committed by Eric_Lee
parent 7c55c42582
commit b0dd8d044d

@ -9,4 +9,11 @@
ansible.windows.win_powershell: ansible.windows.win_powershell:
script: | script: |
tinkerd install --name {{ applet_name }} tinkerd install --name {{ applet_name }}
$exitCode = $LASTEXITCODE
if ($exitCode -ne 0) {
Write-Host "Failed to install {{ applet_name }}"
Write-Host "Exit code: $exitCode"
$Ansible.Failed = $true
exit 1
}
when: applet_name != 'all' when: applet_name != 'all'

@ -18,7 +18,7 @@
PYTHON_VERSION: 3.11.10 PYTHON_VERSION: 3.11.10
CHROME_VERSION: 118.0.5993.118 CHROME_VERSION: 118.0.5993.118
CHROME_DRIVER_VERSION: 118.0.5993.70 CHROME_DRIVER_VERSION: 118.0.5993.70
TINKER_VERSION: v0.1.9 TINKER_VERSION: v0.2.0
tasks: tasks:
- block: - block:
@ -268,6 +268,13 @@
ansible.windows.win_powershell: ansible.windows.win_powershell:
script: | script: |
tinkerd install all tinkerd install all
$exitCode = $LASTEXITCODE
if ($exitCode -ne 0) {
Write-Host "Failed to install applets"
Write-Host "Exit code: $exitCode"
$Ansible.Failed = $true
exit 1
}
register: sync_remote_applets register: sync_remote_applets
when: INSTALL_APPLETS when: INSTALL_APPLETS

@ -9,3 +9,10 @@
ansible.windows.win_powershell: ansible.windows.win_powershell:
script: | script: |
tinkerd uninstall --name {{ applet_name }} tinkerd uninstall --name {{ applet_name }}
$exitCode = $LASTEXITCODE
if ($exitCode -ne 0) {
Write-Host "Failed to uninstall {{ applet_name }}"
Write-Host "Exit code: $exitCode"
$Ansible.Failed = $true
exit 1
}

Loading…
Cancel
Save