首页 > 其他分享 >[Jenkins] FATAL: Unable to produce a script file

[Jenkins] FATAL: Unable to produce a script file

时间:2023-12-26 11:37:37浏览次数:26  
标签:10 java 17 script hudson produce 34 Unable model

错误

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”不支持中文

解决办法

把中文改成英文。

标签:10,java,17,script,hudson,produce,34,Unable,model
From: https://www.cnblogs.com/jiangyibo/p/17927755.html

相关文章

  • 关于SAP-DB-服务器组-创建SAPHanaTopology-资源报错-Unable to find agent SAPHanaTop
    SAPHanaTopology资源收集每个节点上的SAPHANA系统复制的状态和配置。为配置以下属性SAPHanaTopology。运行以下命令来创建SAPHANATopology资源:笔者在SAP-DB-服务器组-pacemaker集群中,创建SAPHanaTopology资源时,使用如下命令:[root@db01qq-5201351]#pcsresourcecreate......
  • reproduce-ray-tracing-in-one-weekend
    reproduce-ray-tracing-in-one-weekendCreated:2023-12-24T22:08+08:00Published:2023-12-26T09:38+08:00Categories:ComputerGraphics成像模型:vec3,rayimage和viewport大小几何约定,up-y,right-x,back-zcamera和viewport中的各个点和向量viewport......
  • JavaScript基础语句和window对象
    ifelse语句varsum=190varyouhuisum//赋予一个容器if(sum>=200){youhuisum=sum-10console.log(111)}else{//如果上面if不满足则都执行else语句......
  • JavaScript读写FM1208 CPU卡源码
    本示例使用的发卡器:<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv=&quo......
  • JavaScript读写15693 ICod2 卡源码
    本示例使用设备:<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="......
  • moment js/nodejs/typescript TypeError: moment_1.default is not a function报错解
    引入问题造成的,改一下就好了importmomentfrom'moment'改为constmoment=require('moment');测试一下letret=moment(1617678420000).format('YYYY年MM月DD日hh时mm分ss秒')console.log('日期')console.log(ret)......
  • TypeScript基础
    基础类型letstr:string="Hello,TypeScript";letnum:number=42;letbool:boolean=true;定义一个接口interfacePerson{name:string;age:number;}functiongreet(person:Person):string{return`Hello,${person.name}!Youare${person.age}......
  • # TypeScript 类型声明、数据类型
    TypeScript类型声明、数据类型好烦数据类型JavaScript的类型分为两种:原始数据类型(Primitivedatatypes)和对象类型【引用数据类型】(Objecttypes)。原始数据类型包括:布尔值、数值、字符串、null、undefined以及ES6中的新类型Symbol和ES10中的新类型BigInt。类型声......
  • # 1. TypeScript 简介
    1.TypeScript简介烦教程地址教程资源:https://ts.xcatliu.com/introduction/what-is-typescript.html#link-1中文官网:https://www.typescriptlang.org/TypeScript特点JS的超集包含JS的所有元素能够运行JS代码支持ES语法是一种开源、跨平台的编程语言编译器......
  • Typescript中的never类型
    在TypeScript中,never类型表示那些永远不会发生的类型。它通常用来表示以下情况:函数的返回类型:如果一个函数永远不会返回(例如抛出异常或进入无限循环),可以将其返回类型标注为never。functionthrowError(message:string):never{thrownewError(message);}function......