When sending HTTP post request to http://127.0.0.1:8080/restart to call the restart API, it responses 302 Found which redirects to http://127.0.0.1:8080/ .
HTTP/1.1 302 Found
Date: Fri, 15 Mar 2019 05:48:53 GMT
X-Content-Type-Options: nosniff
Location: http://127.0.0.1:8080/
Content-Length: 0
Server: Jetty(9.4.z-SNAPSHOT)
Then it will response a 503 Service Unavailable because Jenkins is restarting.
HTTP/1.1 503 Service Unavailable Date: Fri, 15 Mar 2019 05:48:54 GMT X-Content-Type-Options: nosniff Expires: 0 Cache-Control: no-cache,no-store,must-revalidate Content-Type: text/html;charset=utf-8 Server: Jetty(9.4.z-SNAPSHOT)
[JENKINS-56575] Jenkins REST API restart() responses 503
Assignee | New: Yudong Li [ p01son ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Comment | [ [https://github.com/jenkinsci/java-client-api/pull/391] ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "#3972 in core (alternative using Accept header) (Web Link)" [ 22572 ] |
Remote Link | New: This issue links to "#4030 in core (using different endpoints) (Web Link)" [ 22921 ] |