|
@@ -329,9 +329,12 @@ public class AppDeployServiceImpl implements AppDeployService {
|
|
|
|
|
|
|
|
deployingRepository.save(appDeploying);
|
|
deployingRepository.save(appDeploying);
|
|
|
|
|
|
|
|
- BuildLog buildLog = appDeploying.getBuildLog();
|
|
|
|
|
- AppConfig appConfig = appDeploying.getAppConfig();
|
|
|
|
|
- refreshCdn(appConfig, buildLog);
|
|
|
|
|
|
|
+ Result result = deployResult.getResult();
|
|
|
|
|
+ if (result.getCode() == ResultStatus.SUCCESS.getCode()) {
|
|
|
|
|
+ BuildLog buildLog = appDeploying.getBuildLog();
|
|
|
|
|
+ AppConfig appConfig = appDeploying.getAppConfig();
|
|
|
|
|
+ refreshCdn(appConfig, buildLog);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void refreshCdn(AppConfig appConfig, BuildLog buildLog) {
|
|
private void refreshCdn(AppConfig appConfig, BuildLog buildLog) {
|