Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60099

Groovy script console '/scriptText' always returns HTTP 200

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
      None
    • Environment:
      core:2.203
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              allan_burdajewicz Allan BURDAJEWICZ
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: