Fix robocopy deployment reliability (#288)
Commit: deb158ed043d425d185c0f64adec69568de28aa5
Date: 2025-09-02 23:10:20 +0200
Author: PascalHavelange
Commit Message
Fix robocopy deployment reliability (#288)
# Fix robocopy deployment reliability issues
## Problem
The deployment pipeline was experiencing frequent failures due to robocopy operations with custom retry parameters. The custom retry count and sleep time settings were causing the pipeline to fail "often" in the CI/CD environment.
## Changes Made
**Updated robocopy command parameters:**
- **Removed custom retry settings**: Removed `/R:2 /W:2` parameters that were causing reliability issues
- **Added output suppression**: Added `/NFL /NDL` flags to reduce verbose output and improve log readability
- **Improved logging**: Maintained comprehensive logging while reducing noise from file-level operations
## Technical Details
**Before:**
```powershell
robocopy "$Source" "$Destination" /MIR /COPY:DAT /NP /R:2 /W:2 /LOG:"$logFile"
After:
robocopy "$Source" "$Destination" /MIR /COPY:DAT /NP /NFL /NDL /LOG:"$logFile"
Parameter changes:
/R:2
(retry 2 times) → Removed (uses robocopy defaults)/W:2
(wait 2 seconds) → Removed (uses robocopy defaults)/NFL
→ Added (No File List - reduces output verbosity)/NDL
→ Added (No Directory List - reduces output verbosity)
Benefits
✅ Improved reliability: Using robocopy default retry behavior instead of custom settings ✅ Cleaner logs: Reduced verbose output while maintaining error reporting ✅ Better CI/CD performance: Less likely to encounter transient failures ✅ Maintained functionality: All mirror, copy, and logging features preserved
This change addresses the pipeline reliability issues while maintaining the same deployment functionality.
Co-authored-by: Pascal HAVELANGE havelangep@hotmail.com ```
Files Changed
- 📝 Modified:
.github/workflows/deploy-mwnf-svr.yml
Links
This documentation was automatically generated from Git commit data.