Fix retention policy for functional and remote jobs of release builds (#473)