水木接口修改

This commit is contained in:
even 2025-07-06 17:28:39 +08:00
parent 7a2fa73974
commit 213f876b37
2 changed files with 3 additions and 3 deletions

View File

@ -120,7 +120,7 @@ public abstract class DockerWorker extends BaseWorker{
case STDOUT: case STDOUT:
System.out.print(output); System.out.print(output);
log.info("标准输出: {}", output.trim()); log.info("标准输出: {}", output.trim());
append(context, "标准输出: ,容器id" + containerId + " content" + output); // append(context, "容器id" + containerId + "\n content" + output);
break; break;
case STDERR: case STDERR:
System.err.print(output); System.err.print(output);

View File

@ -255,9 +255,9 @@ public class ShuiMuServiceImpl implements ShuiMuService {
.queryParam("arch","x86") .queryParam("arch","x86")
.queryParam("fuzzMinutes",fuzzMinutes) .queryParam("fuzzMinutes",fuzzMinutes)
.toUriString(); .toUriString();
ResponseEntity<String> exchange = restTemplate.exchange(uriString, HttpMethod.GET, entity, String.class, new HashMap<>()); ResponseEntity<String> exchange = restTemplate.exchange(uriString, HttpMethod.POST, entity, String.class, new HashMap<>());
if (exchange.getStatusCode().isError()) { if (exchange.getStatusCode().isError()) {
throw new ServiceException(GlobalErrorCodeConstants.PIPELINE_ERROR.getCode(),"保存并且构建失败"); throw new ServiceException(GlobalErrorCodeConstants.PIPELINE_ERROR.getCode(),"执行测试失败");
} }
} }