buildAndFail

Executes a build, expecting it to complete with failure.

Return

the build result

Throws

if the configuration of this runner is invalid (e.g. project directory not set)

if the build succeeds