Improve specs for Ci::ProcessBuildService

These specs are quote complex. Is there a way to use parametrized rspec block to simplify it?

Can we avoid magic local variables b / h?