欢迎使用普元产品知识库,本知识库包含普元应用开发平台EOSPlatform,流程平台BPS,企业服务总线ESB,微服务平台Microservice,运维管理平台Devops,数据集成平台DI
欢迎使用普元文档库
问题:执行发布任务时失败了,报错:
[Pipeline] echo
java.lang.IllegalStateException: hudson.AbortException: Fail: the returned code 404 is not in the accepted range:
[[100‥399]]
[Pipeline] httpRequest
HttpMethod: POST
URL: http://x.x.x.x:8080/api/engine/pipelines/instances/164/stages/109/actions/complete
Content-type: application/json
Accept: application/json
Authorization: *****
Sending request to url: http://x.x.x.x:8080/api/engine/pipelines/instances/164/stages/109/actions/complete
Response Code: HTTP/1.1 404 Not Found
Response:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /api/engine/pipelines/instances/164/stages/109/actions/complete. Reason:
<pre> Not Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>
</body>
解决:检查下DevOps管理平台中系统配置--》系统信息--》系统参数处的Pcm.RootUrl参数是否修改为DevOps的地址,若没有请根据自己环境的实际地址修改,修改后保存,再去执行任务即可。