[JIRA] (JENKINS-60099) Groovy script console '/scriptText' always returns HTTP 200

2 views
Skip to first unread message

aburdajewicz@cloudbees.com (JIRA)

unread,
Nov 7, 2019, 11:22:03 PM11/7/19
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ created an issue
 
Jenkins / Improvement JENKINS-60099
Groovy script console '/scriptText' always returns HTTP 200
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: core
Created: 2019-11-08 04:21
Environment: core:2.203
Priority: Minor Minor
Reporter: Allan BURDAJEWICZ

The HTTP call to "/scriptText" (groovy script console) will almost always return 200 even if the groovy execution failed badly: https://github.com/jenkinsci/jenkins/blob/jenkins-2.203/core/src/main/java/hudson/util/RemotingDiagnostics.java#L141-L147

This seems inconsistent. When using the REST API to execute groovy scripts, a user would expect to have an error code in the HTTP response.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages