【发布时间】:2017-07-03 16:28:32
【问题描述】:
我正在运行 Jenkins 版本。 2.7.1 在 windows 服务器上,我正在尝试通过 api 创建一个新作业。
为简单起见,我已关闭“防止跨站点请求伪造漏洞”并使用 PostMan 提交我的请求。
我发布到http://JENKINSSERVER/createItem?name=apicreateExample,内容类型为application/xml,正文为
<?xml version="1.0" encoding="utf-16"?>
<project>
<description>BUILD # Telecoms1</description>
<keepDependencies>true</keepDependencies>
<properties/>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>true</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>false</concurrentBuild>
<builders/>
<publishers/>
<buildWrappers/>
</project>
但是,此调用返回 500 服务器错误,并带有以 java.io.IOException: Unable to delete 'C:\Program Files (x86)\Jenkins\jobs\apicreateExample'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. 开头的消息
我已经搜索了 stackoverflow 和 google,但没有找到有关此问题的参考。
【问题讨论】:
标签: jenkins