私はJenkinsを実行しています。 2.7.1をWindowsサーバーにインストールし、api経由で新しいジョブを作成しようとしています。APIを使用してjenkinsジョブを作成するとIOExceptionがスローされます
わかりやすくするために、私は「Cross Site Request Forgery Exploit」を無効にして、PostManを使用してリクエストを送信しています。
私はapplication/xml
のコンテンツタイプにhttp://JENKINSSERVER/createItem?name=apicreateExample
に投稿すると
<?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>
のボディとしていますが、この呼び出しは、私はstackoverflowのとGoogleを検索しました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.
を開始するメッセージで500サーバーエラーを返しますが、この問題への参照が見つかりませんでした。