Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jenkins 2.1:错误:步骤&x2018;构建后任务’;中止@java.nio.charset.MalformedInputException:输入长度=1_Jenkins_Jenkins Plugins - Fatal编程技术网

Jenkins 2.1:错误:步骤&x2018;构建后任务’;中止@java.nio.charset.MalformedInputException:输入长度=1

Jenkins 2.1:错误:步骤&x2018;构建后任务’;中止@java.nio.charset.MalformedInputException:输入长度=1,jenkins,jenkins-plugins,Jenkins,Jenkins Plugins,在最近升级Jenkins和插件之后,构建后任务会随机中止,出现如下异常。是什么原因造成的?如何修复 软件版本: 15:29:38 ERROR: Step ‘Post build task’ aborted due to exception: 15:29:38 java.nio.charset.MalformedInputException: Input length = 1 15:29:38 at java.nio.charset.CoderResult.throwException(C

在最近升级Jenkins和插件之后,构建后任务会随机中止,出现如下异常。是什么原因造成的?如何修复

软件版本:

15:29:38 ERROR: Step ‘Post build task’ aborted due to exception: 
15:29:38 java.nio.charset.MalformedInputException: Input length = 1
15:29:38    at java.nio.charset.CoderResult.throwException(CoderResult.java:281)
15:29:38    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
15:29:38    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
15:29:38    at java.io.InputStreamReader.read(InputStreamReader.java:184)
15:29:38    at java.io.BufferedReader.fill(BufferedReader.java:161)
15:29:38    at java.io.BufferedReader.read1(BufferedReader.java:212)
15:29:38    at java.io.BufferedReader.read(BufferedReader.java:286)
15:29:38    at hudson.Util.loadFile(Util.java:199)
15:29:38    at hudson.model.Run.getLog(Run.java:1953)
15:29:38    at hudson.plugins.postbuildtask.PostbuildTask.perform(PostbuildTask.java:99)
15:29:38    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
15:29:38    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
15:29:38    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps    (AbstractBuild.java:690)
15:29:38    at hudson.model.Build$BuildExecution.post2(Build.java:186)
15:29:38    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
15:29:38    at hudson.model.Run.execute(Run.java:1752)
15:29:38    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
15:29:38    at hudson.model.ResourceController.execute(ResourceController.java:97)
15:29:38    at hudson.model.Executor.run(Executor.java:429)
詹金斯。2.103; 哈德逊后期构建任务v1.8

错误消息(打印到Jenkins控制台):

15:29:38 ERROR: Step ‘Post build task’ aborted due to exception: 
15:29:38 java.nio.charset.MalformedInputException: Input length = 1
15:29:38    at java.nio.charset.CoderResult.throwException(CoderResult.java:281)
15:29:38    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
15:29:38    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
15:29:38    at java.io.InputStreamReader.read(InputStreamReader.java:184)
15:29:38    at java.io.BufferedReader.fill(BufferedReader.java:161)
15:29:38    at java.io.BufferedReader.read1(BufferedReader.java:212)
15:29:38    at java.io.BufferedReader.read(BufferedReader.java:286)
15:29:38    at hudson.Util.loadFile(Util.java:199)
15:29:38    at hudson.model.Run.getLog(Run.java:1953)
15:29:38    at hudson.plugins.postbuildtask.PostbuildTask.perform(PostbuildTask.java:99)
15:29:38    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
15:29:38    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
15:29:38    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps    (AbstractBuild.java:690)
15:29:38    at hudson.model.Build$BuildExecution.post2(Build.java:186)
15:29:38    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
15:29:38    at hudson.model.Run.execute(Run.java:1752)
15:29:38    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
15:29:38    at hudson.model.ResourceController.execute(ResourceController.java:97)
15:29:38    at hudson.model.Executor.run(Executor.java:429)

我相信这是与我有关的


问题是Jenkins在运行时读取控制台输出时无法处理字符集。中断的更改被恢复,问题将在2.104中解决。

在我的例子中,Jenkins试图解析一个.yml文件,其中包含一个
ä


删除此链接可以解决问题。

虽然此链接可以回答问题,但最好在此处包含答案的基本部分,并提供链接供参考。如果链接页面发生更改,仅链接的答案可能无效。-编辑以提供更多上下文。感谢您的回答。那我就等2.104,升级到Jenkins 2.104后就看不到错误了