The grep -oE for instanceCode matches BOTH provenance.instanceCode AND the v2 root mirror, returning two lines. sed processes each line but the resulting SOURCE_CODE shell variable was multi-line, which made the directory check fail (-d "/var/lib/odoo/filestore/odoo16 [newline]odoo16") → rename branch silently skipped → Odoo with db_name=odoo16v2 looks at /var/lib/odoo/filestore/odoo16v2/, finds nothing, returns 500 on every asset. Added head -1 to the pipe so SOURCE_CODE is single-line, plus an echo so the rename branch's path is visible in Job logs even when it short-circuits.
2.0 KiB
2.0 KiB