mirror of https://gitee.com/stylefeng/roses
【7.1.6】【scanner】更新devops平台汇报资源
parent
85d12f7998
commit
46c904a12f
|
@ -72,4 +72,9 @@ public interface ScannerConstants {
|
|||
*/
|
||||
Integer DEVOPS_REPORT_CONNECTION_TIMEOUT_SECONDS = 3;
|
||||
|
||||
/**
|
||||
* DevOps平台资源汇报路径
|
||||
*/
|
||||
String DEVOPS_REQUEST_PATH = "/resource/addExternalResource";
|
||||
|
||||
}
|
||||
|
|
|
@ -79,8 +79,7 @@ import javax.annotation.Resource;
|
|||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static cn.stylefeng.roses.kernel.scanner.api.constants.ScannerConstants.DEVOPS_REPORT_CONNECTION_TIMEOUT_SECONDS;
|
||||
import static cn.stylefeng.roses.kernel.scanner.api.constants.ScannerConstants.DEVOPS_REPORT_TIMEOUT_SECONDS;
|
||||
import static cn.stylefeng.roses.kernel.scanner.api.constants.ScannerConstants.*;
|
||||
|
||||
/**
|
||||
* 资源表 服务实现类
|
||||
|
@ -394,8 +393,8 @@ public class SysResourceServiceImpl extends ServiceImpl<SysResourceMapper, SysRe
|
|||
serverHost = StrUtil.removeSuffix(serverHost, "/");
|
||||
}
|
||||
|
||||
// 组装请求DevOps平台的地址 todo
|
||||
String devopsReportUrl = serverHost + "/todo url";
|
||||
// 组装请求DevOps平台的地址
|
||||
String devopsReportUrl = serverHost + DEVOPS_REQUEST_PATH;
|
||||
|
||||
// jwt token生成
|
||||
String projectInteractionSecretKey = devOpsReportProperties.getProjectInteractionSecretKey();
|
||||
|
|
Loading…
Reference in New Issue