@Override
@Transactional
public Deployment create(Application application, DeploymentType deploymentType, String contextPath)
throws ServiceException, CheckException {
try {
Deployment deployment = new Deployment();
deployment.setApplication(application);
deployment.setType(deploymentType);
deployment.setDate(new Date());
application = applicationService.findByNameAndUser(application
.getUser(), application.getName());
application.setDeploymentStatus(Application.ALREADY_DEPLOYED);
application.setContextPath(contextPath);
applicationService.saveInDB(application);
return deploymentDAO.save(deployment);
} catch (PersistenceException e) {
throw new ServiceException(e.getLocalizedMessage(), e);
}
}
DeploymentServiceImpl.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:devops-cstack
作者:
评论列表
文章目录