jenkinsci / jenkinsci/java-client-api

I encountered a ClientProtocolException problem

Abierto
#458 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
913
Forks
466
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

>

>

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.