Add utility method to generate build

Adds a utility to generate a build, given a buildConfig and modifies the webhook controller to use the new method.