[Fix] Gestione corretta exit code robocopy (0-7 = success, 8+ = error)
Build and Push Docker Images / Build Windows Container (push) Failing after 1s
Build and Push Docker Images / Create Multi-Platform Manifest (push) Has been cancelled
Build and Push Docker Images / Build Linux Container (push) Has been cancelled

This commit was merged in pull request #1.
This commit is contained in:
2026-01-24 17:27:13 +01:00
parent 8e229fc77c
commit 7fe8453e7a
+5
View File
@@ -110,6 +110,11 @@ jobs:
echo ===== Moving files to working directory =====
robocopy repo . /E /MOVE /NFL /NDL /NJH /NJS
REM robocopy exit codes: 0=no copy, 1=ok, 2=extra files, 3=ok+extra, 4+=error
if %ERRORLEVEL% GEQ 8 (
echo Robocopy failed with exit code %ERRORLEVEL%
exit /b 1
)
rmdir repo /S /Q 2>nul
echo ===== Verifying checkout =====