水木接口修改
This commit is contained in:
parent
7a2fa73974
commit
213f876b37
@ -120,7 +120,7 @@ public abstract class DockerWorker extends BaseWorker{
|
||||
case STDOUT:
|
||||
System.out.print(output);
|
||||
log.info("标准输出: {}", output.trim());
|
||||
append(context, "标准输出: ,容器id:" + containerId + " content" + output);
|
||||
// append(context, "容器id:" + containerId + "\n content" + output);
|
||||
break;
|
||||
case STDERR:
|
||||
System.err.print(output);
|
||||
|
@ -255,9 +255,9 @@ public class ShuiMuServiceImpl implements ShuiMuService {
|
||||
.queryParam("arch","x86")
|
||||
.queryParam("fuzzMinutes",fuzzMinutes)
|
||||
.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()) {
|
||||
throw new ServiceException(GlobalErrorCodeConstants.PIPELINE_ERROR.getCode(),"保存并且构建失败");
|
||||
throw new ServiceException(GlobalErrorCodeConstants.PIPELINE_ERROR.getCode(),"执行测试失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user