{"record":{"id":"c31b1a8a706614e2","repo":"jenkinsci/jenkins","slug":"no-script-is-specified","errorCode":null,"errorMessage":"No script is specified","messagePattern":"No script is specified","errorType":"validation","errorClass":"CmdLineException","httpStatus":null,"severity":"error","filePath":"core/src/main/java/hudson/cli/GroovyCommand.java","lineNumber":88,"sourceCode":"        Binding binding = new Binding();\n        binding.setProperty(\"out\", new PrintWriter(new ScriptListener.ListenerWriter(new OutputStreamWriter(stdout, getClientCharset()), GroovyCommand.class, null, scriptListenerCorrelationId, User.current()), true));\n        binding.setProperty(\"stdin\", stdin);\n        binding.setProperty(\"stdout\", stdout);\n        binding.setProperty(\"stderr\", stderr);\n\n        GroovyShell groovy = new GroovyShell(Jenkins.get().getPluginManager().uberClassLoader, binding);\n        String script = loadScript();\n        ScriptListener.fireScriptExecution(script, binding, GroovyCommand.class, null, scriptListenerCorrelationId, User.current());\n        groovy.run(script, \"RemoteClass\", remaining.toArray(new String[0]));\n        return 0;\n    }\n\n    /**\n     * Loads the script from the argument.\n     */\n    private String loadScript() throws CmdLineException, IOException, InterruptedException {\n        if (script == null)\n            throw new CmdLineException(null, \"No script is specified\");\n        if (script.equals(\"=\"))\n            return IOUtils.toString(stdin);\n\n        checkChannel();\n        return null; // never called\n    }\n}\n","sourceCodeStart":70,"sourceCodeEnd":96,"githubUrl":"https://github.com/jenkinsci/jenkins/blob/2e228ff40b14dbc8b14ffbc6edf0e4383cf744fc/core/src/main/java/hudson/cli/GroovyCommand.java#L70-L96","documentation":"Error \"No script is specified\" thrown in jenkinsci/jenkins.","triggerScenarios":"Raised when the groovy CLI command is invoked without a script argument and without script input on stdin.","commonSituations":"See trigger scenarios.","solutions":["Pass the Groovy script via standard input or as a file argument.","Use '-' as the script source to read from stdin explicitly.","Verify the script file path exists and is readable."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2e228ff40b14dbc8b14ffbc6edf0e4383cf744fc","analyzedAt":"2026-08-14T07:07:15.274Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}