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

Groovy script console '/scriptText' always returns HTTP 200

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None
    • core:2.203

      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.

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

              Created:
              Updated: