Browse Source

perf: add error msg when applet task failed

pull/14359/head
Eric 4 weeks ago committed by Eric_Lee
parent
commit
b0dd8d044d
  1. 7
      apps/terminal/automations/deploy_applet_host/install_applet.yml
  2. 9
      apps/terminal/automations/deploy_applet_host/playbook.yml
  3. 7
      apps/terminal/automations/deploy_applet_host/uninstall_applet.yml

7
apps/terminal/automations/deploy_applet_host/install_applet.yml

@ -9,4 +9,11 @@
ansible.windows.win_powershell:
script: |
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'

9
apps/terminal/automations/deploy_applet_host/playbook.yml

@ -18,7 +18,7 @@
PYTHON_VERSION: 3.11.10
CHROME_VERSION: 118.0.5993.118
CHROME_DRIVER_VERSION: 118.0.5993.70
TINKER_VERSION: v0.1.9
TINKER_VERSION: v0.2.0
tasks:
- block:
@ -268,6 +268,13 @@
ansible.windows.win_powershell:
script: |
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
when: INSTALL_APPLETS

7
apps/terminal/automations/deploy_applet_host/uninstall_applet.yml

@ -9,3 +9,10 @@
ansible.windows.win_powershell:
script: |
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