public class InstallProjectCmd extends AbstractJobCommand {
@Override
public JobResult internalExecute(CommandContext ctx, JobRequest request) throws Exception {
JobRequestHelper helper = getHelper(ctx);
InstallProjectRequest jobRequest = (InstallProjectRequest) request;
JobResult result = null;
try {
result = helper.installProject( jobRequest.getJobId(), jobRequest.getRepositoryName(), jobRequest.getProjectName() );
} finally {
JobStatus status = result != null ? result.getStatus() : JobStatus.SERVER_ERROR;
logger.debug( "-----installProject--- , repositoryName: {}, project name: {} [{}]",
jobRequest.getRepositoryName(), jobRequest.getProjectName(), status);
}