Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/27.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
Java 清空Jenkins工作区导致Jenkins构建失败_Java_Jenkins_Continuous Integration_Hudson - Fatal编程技术网

Java 清空Jenkins工作区导致Jenkins构建失败

Java 清空Jenkins工作区导致Jenkins构建失败,java,jenkins,continuous-integration,hudson,Java,Jenkins,Continuous Integration,Hudson,我将在CI中运行的Jenkins作业编辑为“在构建开始之前删除工作区”,但当我使用新选项构建作业时。生成失败: Started by user [8mha:AAAAmR+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsL

我将在CI中运行的Jenkins作业编辑为“在构建开始之前删除工作区”,但当我使用新选项构建作业时。生成失败:

Started by user [8mha:AAAAmR+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAz2EgZe/dLi1CL93MzCpMQcIwDWRQFzwgAAAA==[0mmosawi
Building remotely on [8mha:AAAArx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAypEgYV/eT83ILSktQi/ZLsVN3kxJxkXaDdpRW6RRmpOWa6FWYmuoYA2b5uWNkAAAA=[0mtke-calc-linux-rhel6-x64-1 (rhel6-java7 rhel6) in workspace /jenkins/workspace/completeness_compiler_runtime_tests
Using remote perforce client: completeness_compiler_runtime_tests-217915412
[completeness_compiler_runtime_tests] $ p4 workspace -o completeness_compiler_runtime_tests-217915412
Last build changeset: 61685
[completeness_compiler_runtime_tests] $ p4 changes -s submitted -m 1 //completeness_compiler_runtime_tests-217915412/...
[completeness_compiler_runtime_tests] $ p4 -s changes -s submitted //completeness_compiler_runtime_tests-217915412/...@61686,@61695
[completeness_compiler_runtime_tests] $ p4 describe -s 61695
[completeness_compiler_runtime_tests] $ p4 -G where //...
[completeness_compiler_runtime_tests] $ p4 -s users mosawi
[completeness_compiler_runtime_tests] $ p4 user -o mosawi
Sync'ing workspace to changelist 61695.
[completeness_compiler_runtime_tests] $ p4 -s sync //completeness_compiler_runtime_tests-217915412/...@61695
Sync complete, took 382 ms
No emails were triggered.
[completeness_compiler_runtime_tests] $ /bin/sh -xe /tmp/hudson3579240812233061648.sh
+ cd /jenkins/workspace/completeness_compiler_runtime_tests/TPS/qel/automation/tools
/tmp/hudson3579240812233061648.sh: line 3: cd: /jenkins/workspace/completeness_compiler_runtime_tests/TPS/qel/automation/tools: No such file or directory
Build step 'Execute shell' marked build as failure
Sending e-mails to: mosawi@generalatomics.com
Email was triggered for: Failure
Sending email for trigger: Failure
Sending email to: mosawi_haddadian@generalatomics.com
所以它甚至找不到那个目录。有人知道我怎么解决这个问题吗?这看起来很简单,但我不知道如何解决这个问题

/tmp/hudson3579240812233061648.sh: line 3: cd: /jenkins/workspace/completeness_compiler_runtime_tests/TPS/qel/automation/tools
错误在执行shell步骤中。在作业配置的该步骤的第3行,您正在cd'ing到某个相对于工作区根目录的目录。您的wokrspace根可能是

/jenkins/workspace/completeness_compiler_runtime_tests/
作业的名称是完整性、编译器、运行时和测试。 由于您刚刚删除了/jenkins/workspace/compiler\u runtime\u tests/中存储的所有内容,因此无法cd到错误中提到的目录,因为它不存在

问候,


C.O.

你确定你提到了回购地点吗?我提到了,我使用的是perforce,目录映射都是正确的。请记住,一切正常,我添加的唯一选项是“在构建开始之前删除工作区”