Optimize CI/CD clone process: Preserve compilation cache
Some checks failed
BotServer CI/CD / build (push) Has been cancelled

- Always clone fresh from ALM, keeping /home/gbuser/target for incremental builds
- /home/gbuser/target is outside workspace, persists across runs
- Simplified clone logic, removed complex conditional checks

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-10 20:02:07 -03:00
parent cb1998efe8
commit 6b245dd690

View file

@ -27,7 +27,7 @@ jobs:
- name: Clean and Clone Fresh
run: |
cd $WORKSPACE
# Remove old source, keep only target cache
# Remove old workspace, keep /home/gbuser/target for compilation cache
rm -rf gb-ws
# Fresh clone with full history
git clone --branch main https://alm.pragmatismo.com.br/GeneralBots/gb.git gb-ws