mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-16 23:38:36 +00:00
perf: add error msg when applet task failed
This commit is contained in:
@@ -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'
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user