Caused: java.io.IOException: Cannot run program ““ (in directory “/var/jenkins_home/workspace/techUI
2021/12/24 20:09:50
本文主要是介绍Caused: java.io.IOException: Cannot run program ““ (in directory “/var/jenkins_home/workspace/techUI,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
docker版jenkins执行maven命令
报错:
Started by user admin-Linux Running as SYSTEM Building in workspace /var/jenkins_home/workspace/techUI The recommended git tool is: NONE No credentials specified > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/techUI/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://gitee.com/WeiboGe2012/techUI.git # timeout=10 Fetching upstream changes from https://gitee.com/WeiboGe2012/techUI.git > git --version # timeout=10 > git --version # 'git version 2.30.2' > git fetch --tags --force --progress -- https://gitee.com/WeiboGe2012/techUI.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision 5bb5b83d2ccc4510f3a34aa6c3860fa75295f0d3 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 5bb5b83d2ccc4510f3a34aa6c3860fa75295f0d3 # timeout=10 Commit message: "update src/test/java/TechTest.java. 更测试地址" > git rev-list --no-walk 5bb5b83d2ccc4510f3a34aa6c3860fa75295f0d3 # timeout=10 [techUI] $ /bin/bash /tmp/jenkins3633621652830721347.sh FATAL: command execution failed java.io.IOException: error=2, No such file or directory at java.base/java.lang.ProcessImpl.forkAndExec(Native Method) at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:340) at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107) Caused: java.io.IOException: Cannot run program "" (in directory "/var/jenkins_home/workspace/techUI"): error=2, No such file or directory at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071) at hudson.Proc$LocalProc.<init>(Proc.java:252) at hudson.Proc$LocalProc.<init>(Proc.java:221) at hudson.Launcher$LocalLauncher.launch(Launcher.java:996) at hudson.Launcher$ProcStarter.start(Launcher.java:508) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:143) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:91) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:812) at hudson.model.Build$BuildExecution.build(Build.java:198) at hudson.model.Build$BuildExecution.doRun(Build.java:163) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:520) at hudson.model.Run.execute(Run.java:1891) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:99) at hudson.model.Executor.run(Executor.java:440) Build step 'Execute shell' marked build as failure [techUI] $ /usr/local/allure-2.17.2/bin/allure generate -c -o /var/jenkins_home/workspace/techUI/allure-report OpenJDK 64-Bit Server VM warning: Ignoring option PermSize; support was removed in 8.0 OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0 allure-results does not exist Report successfully generated to /var/jenkins_home/workspace/techUI/allure-report Allure report was successfully generated. Creating artifact for the build. Artifact was added to the build. Finished: FAILURE
解决办法:
这篇关于Caused: java.io.IOException: Cannot run program ““ (in directory “/var/jenkins_home/workspace/techUI的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-12-27数据结构与算法面试题详解及练习
- 2024-12-27网络请求面试题详解与实战
- 2024-12-27数据结构和算法面试真题详解与实战教程
- 2024-12-27网络请求面试真题解析与实战教程
- 2024-12-27数据结构和算法大厂面试真题详解与实战指南
- 2024-12-27TS大厂面试真题解析与应对策略
- 2024-12-27TS大厂面试真题详解与解析
- 2024-12-27网站安全入门:如何识别和修复漏洞
- 2024-12-27SQL注入基础教程
- 2024-12-27初学者指南:理解和修复跨域漏洞