jenkinsci/jenkins · error · CmdLineException
No script is specified
Error message
No script is specified
What it means
Error "No script is specified" thrown in jenkinsci/jenkins.
Source
Thrown at core/src/main/java/hudson/cli/GroovyCommand.java:88
Binding binding = new Binding();
binding.setProperty("out", new PrintWriter(new ScriptListener.ListenerWriter(new OutputStreamWriter(stdout, getClientCharset()), GroovyCommand.class, null, scriptListenerCorrelationId, User.current()), true));
binding.setProperty("stdin", stdin);
binding.setProperty("stdout", stdout);
binding.setProperty("stderr", stderr);
GroovyShell groovy = new GroovyShell(Jenkins.get().getPluginManager().uberClassLoader, binding);
String script = loadScript();
ScriptListener.fireScriptExecution(script, binding, GroovyCommand.class, null, scriptListenerCorrelationId, User.current());
groovy.run(script, "RemoteClass", remaining.toArray(new String[0]));
return 0;
}
/**
* Loads the script from the argument.
*/
private String loadScript() throws CmdLineException, IOException, InterruptedException {
if (script == null)
throw new CmdLineException(null, "No script is specified");
if (script.equals("="))
return IOUtils.toString(stdin);
checkChannel();
return null; // never called
}
}
View on GitHub (pinned to 2e228ff40b)
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.
When it happens
Trigger: Raised when the groovy CLI command is invoked without a script argument and without script input on stdin.
Common situations: See trigger scenarios.
AI-assisted analysis of jenkinsci/jenkins@2e228ff40b (2026-08-14).
Data as JSON: /api/errors/c31b1a8a706614e2.
Report an issue: GitHub.