Jenkins 构建No such file or directory

在使用Jenkins进行构建时遇到了'No such file or directory'的错误,原因是代码中调用File.createTempFile在临时目录创建文件时出现问题。查阅资料后,发现该问题可能与Jenkins的工作目录设置或系统权限有关。解决方案可以参考Jenkins官方问题跟踪页面JENKINS-19041。
摘要由CSDN通过智能技术生成

用Jenkins构建发现如下错误:

/tmp/data-8756845084624448500.txt (No such file or directory)
java.io.FileNotFoundException: /tmp/data-8756845084624448500.txt (No such file or directory)
  at java.io.FileInputStream.open(Native Method)
  at java.io.FileInputStream.<init>(FileInputStream.java:120)
  at java.io.FileReader.<init>(FileReader.java:55)
  at com.xxx.ttt.merge.document.DocUtils.equals(DocUtils.java:20)
  at com.xxx.ttt.merge.dst.QuestradeDataTest.testMergeOption(QuestradeDataTest.java:65)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
  at org.junit.internal.runners.model.ReflectiveCallable
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值