ECMS-5642: Improve cleanupPublication option to publish a first version