try {
if (!buildEnvironment.initialize()) {
return Result.FAILURE;
}
setDescription(getCause().getBuildDescription());
BuildType buildType = BuildType.getBuildType(getParent());
Result buildRunResult = buildType.runBuild(DynamicBuild.this, this, launcher, listener);
setResult(buildRunResult);
return buildRunResult;
} catch (InvalidBuildConfigurationException invalidBuildConfigurationException) {
for (String error : invalidBuildConfigurationException.getValidationErrors()) {
listener.error(error);