提交 ab600a62 authored 作者: chenshiying's avatar chenshiying

[新增] 配置修改

上级 3f2f88a2
......@@ -129,7 +129,7 @@ cd /home/soft
先执行 createJob
再拷贝
/home/soft/docker/jenkins/data/jobs
10、推送jenkins job
......
......@@ -164,9 +164,11 @@ public class GeneratorScript {
String deployPath = grayVersionDataDTO.getDeployPath();
if (StringUtils.isNoneBlank(deployPath)) {
FileUtils.appendNewLine(filePath, "mkdir -p " + deployPath);
FileUtils.appendNewLine(filePath, "rm -rf " + deployPath + "?");
BackendFrontEnum backendFrontType = BackendFrontEnum.getEnumByCode(grayVersionDataDTO.getBackendFrontType());
if (BackendFrontEnum.BACKEND.equals(backendFrontType)) {
FileUtils.appendNewLine(filePath, "mkdir -p " + deployPath + "/logs");
FileUtils.appendNewLine(filePath, "rm -rf " + deployPath + "/logs?");
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论