@Override
protected Result doRun(BuildListener listener) throws Exception, hudson.model.Run.RunnerAbortedException {
BuildEnvironment buildEnvironment = new BuildEnvironment(DynamicBuild.this, launcher, listener);
try {
if (!buildEnvironment.initialize()) {
return Result.FAILURE;
}
setDescription(getCause().getBuildDescription());
BuildType buildType = BuildType.getBuildType(getParent());
Result buildRunResult = buildType.runBuild(DynamicBuild.this, this, launcher, listener);