|
@@ -197,7 +197,7 @@ public class AppDeployServiceImpl implements AppDeployService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public void afterBuild(AppBuilding appBuilding) {
|
|
|
|
|
|
|
+ public void updateAfterBuild(AppBuilding appBuilding) {
|
|
|
AppConfig appConfig = appBuilding.getAppConfig();
|
|
AppConfig appConfig = appBuilding.getAppConfig();
|
|
|
AppDeploying appDeploying = deployingRepository.findByAppConfig(appConfig);
|
|
AppDeploying appDeploying = deployingRepository.findByAppConfig(appConfig);
|
|
|
if (appDeploying != null) {
|
|
if (appDeploying != null) {
|
|
@@ -213,7 +213,7 @@ public class AppDeployServiceImpl implements AppDeployService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public void beforeDeploy(AppBuilding appBuilding, String machineId, String deployBy) {
|
|
|
|
|
|
|
+ public void updateBeforeDeploy(AppBuilding appBuilding, String machineId, String deployBy) {
|
|
|
AppDeploying appDeploying = deployingRepository.findByAppConfig(appBuilding.getAppConfig());
|
|
AppDeploying appDeploying = deployingRepository.findByAppConfig(appBuilding.getAppConfig());
|
|
|
appDeploying.setBuildLog(appBuilding.getBuildLog());
|
|
appDeploying.setBuildLog(appBuilding.getBuildLog());
|
|
|
appDeploying.getDeployingNodes().forEach(appDeployingNode -> {
|
|
appDeploying.getDeployingNodes().forEach(appDeployingNode -> {
|
|
@@ -230,7 +230,7 @@ public class AppDeployServiceImpl implements AppDeployService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public void afterDeploy(EvtAppStatResult deployResult) {
|
|
|
|
|
|
|
+ public void updateAfterDeploy(EvtAppStatResult deployResult) {
|
|
|
log.info("执行 {} 部署后的操作", deployResult.getAppId());
|
|
log.info("执行 {} 部署后的操作", deployResult.getAppId());
|
|
|
String machineId = deployResult.getMachineId();
|
|
String machineId = deployResult.getMachineId();
|
|
|
String appId = deployResult.getAppId();
|
|
String appId = deployResult.getAppId();
|
|
@@ -265,7 +265,7 @@ public class AppDeployServiceImpl implements AppDeployService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public void refresh(EvtAppStatResult statResult) {
|
|
|
|
|
|
|
+ public void updateAppDeployingNode(EvtAppStatResult statResult) {
|
|
|
String appId = statResult.getAppId();
|
|
String appId = statResult.getAppId();
|
|
|
String machineId = statResult.getMachineId();
|
|
String machineId = statResult.getMachineId();
|
|
|
AppDeploying appDeploying = deployingRepository.findByAppConfig_AppId(appId);
|
|
AppDeploying appDeploying = deployingRepository.findByAppConfig_AppId(appId);
|