[Jenkins] FATAL: Unable to produce a script file

错误

10:17:34 FATAL: Unable to produce a script file
10:17:34 Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to xxxxxxx
10:17:34 		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
10:17:34 		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
10:17:34 		at hudson.remoting.Channel.call(Channel.java:1000)
10:17:34 		at hudson.FilePath.act(FilePath.java:1186)
10:17:34 		at hudson.FilePath.act(FilePath.java:1175)
10:17:34 		at hudson.FilePath.createTextTempFile(FilePath.java:1616)
10:17:34 		at hudson.tasks.CommandInterpreter.createScriptFile(CommandInterpreter.java:202)
10:17:34 		at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:120)
10:17:34 		at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
10:17:34 		at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
10:17:34 		at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816)
10:17:34 		at hudson.model.Build$BuildExecution.build(Build.java:199)
10:17:34 		at hudson.model.Build$BuildExecution.doRun(Build.java:164)
10:17:34 		at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524)
10:17:34 		at hudson.model.Run.execute(Run.java:1899)
10:17:34 		at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
10:17:34 		at hudson.model.ResourceController.execute(ResourceController.java:107)
10:17:34 		at hudson.model.Executor.run(Executor.java:449)
10:17:34 java.nio.charset.UnmappableCharacterException: Input length = 1
10:17:34 	at java.base/java.nio.charset.CoderResult.throwException(CoderResult.java:275)
10:17:34 	at java.base/sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:306)
10:17:34 	at java.base/sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:281)
10:17:34 	at java.base/sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
10:17:34 	at java.base/java.io.OutputStreamWriter.write(OutputStreamWriter.java:208)
10:17:34 	at java.base/java.io.BufferedWriter.flushBuffer(BufferedWriter.java:120)
10:17:34 	at java.base/java.io.BufferedWriter.close(BufferedWriter.java:268)
10:17:34 	at hudson.FilePath$CreateTextTempFile.invoke(FilePath.java:1652)
10:17:34 	at hudson.FilePath$CreateTextTempFile.invoke(FilePath.java:1622)
10:17:34 	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3492)
10:17:34 	at hudson.remoting.UserRequest.perform(UserRequest.java:211)
10:17:34 	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
10:17:34 	at hudson.remoting.Request$2.run(Request.java:376)
10:17:34 	at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
10:17:34 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
10:17:34 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
10:17:34 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
10:17:34 	at java.base/java.lang.Thread.run(Thread.java:829)
10:17:34 Caused: java.io.IOException: Failed to create a temp file on xxxxxxxxxx
10:17:34 	at hudson.FilePath.createTextTempFile(FilePath.java:1618)
10:17:34 	at hudson.tasks.CommandInterpreter.createScriptFile(CommandInterpreter.java:202)
10:17:34 	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:120)
10:17:34 	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92)
10:17:34 	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
10:17:34 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816)
10:17:34 	at hudson.model.Build$BuildExecution.build(Build.java:199)
10:17:34 	at hudson.model.Build$BuildExecution.doRun(Build.java:164)
10:17:34 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524)
10:17:34 	at hudson.model.Run.execute(Run.java:1899)
10:17:34 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
10:17:34 	at hudson.model.ResourceController.execute(ResourceController.java:107)
10:17:34 	at hudson.model.Executor.run(Executor.java:449)
10:17:34 Build step 'Execute shell' marked build as failure
10:17:34 No emails were triggered.
10:17:34 Finished: FAILURE

错误原因

Build Steps”里的”Execute shell”不支持中文

解决办法

把中文改成英文。

posted @ 2023-12-26 11:23  空水  阅读(332)  评论(0编辑  收藏  举报