forked from Gitlink/microservices
Merge pull request '从gitlink获取文件entries接口改为需要授权请求' (#585) from wanjia9506/microservices:dev_PMS into dev_PMS
This commit is contained in:
commit
7e237ce650
|
|
@ -160,7 +160,7 @@ public class GitLinkRequestUrl {
|
|||
}
|
||||
|
||||
public static GitLinkRequestUrl GET_FILE_SUB_ENTRIES(String repoOwner, String repoIdentifier, String filepath, String ref) {
|
||||
return getOpenGitLinkRequestUrl(
|
||||
return getGitLinkRequestUrl(
|
||||
String.format("/api/%s/%s/sub_entries.json?filepath=%s&ref=%s&type=%s", repoOwner, repoIdentifier, URLEncoder.encode(filepath), ref, "file")
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -498,7 +498,9 @@ public class PmsCiPipelinesServiceImpl implements IPmsCiPipelinesService {
|
|||
PmsEnterprise pmsEnterprise = pmsEnterpriseService.selectPmsEnterpriseByIdentifier(enterpriseIdentifier);
|
||||
PmsCiPipelines pmsCiPipelines = new PmsCiPipelines();
|
||||
BeanUtils.copyProperties(pmsCiPipelinesInputVo, pmsCiPipelines);
|
||||
pmsCiPipelines.setPipelineTemplateJson(JSON.toJSONString(pmsCiPipelinesInputVo.getPipelineTemplateJson()));
|
||||
if (pmsCiPipelinesInputVo.getPipelineTemplateJson() != null) {
|
||||
pmsCiPipelines.setPipelineTemplateJson(JSON.toJSONString(pmsCiPipelinesInputVo.getPipelineTemplateJson()));
|
||||
}
|
||||
pmsCiPipelines.setDeptId(pmsEnterprise.getDeptId());
|
||||
pmsCiPipelines.setPmsEnterpriseId(pmsEnterprise.getId());
|
||||
Date nowDate = DateUtils.getNowDate();
|
||||
|
|
|
|||
Loading…
Reference in New Issue