jenkinsci / jenkinsci/java-client-api
I encountered a ClientProtocolException problem
- 主要言語
- Java
- スター
- 913
- フォーク
- 466
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I encountered a ClientProtocolException problem when I called the build.Stop() method with Jenkins server version 2.32.2;
`public String Stop() throws HttpResponseException, IOException {`
` try { `
`return client.get(url + "stop");`
`} catch (IOException ex) {`
`if (((HttpResponseException) ex).getStatusCode() == 405) {`
`stopPost();`
`return ""; `
` } `
`}`
` return "";`
`}`
This version of the stop API should be Post on http://url/job/testJob/1/stop, but is actually call the Get http://url/job/testJob/1/stop/api/json, resulting in Jenkins CircularRedirectException from server
>
>
コントリビューションガイド
評価
この issue はまだ評価されていません。