我将在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
所以它甚至无法找到该目录。谁知道我怎么解决这个问题?这似乎很简单但我不知道如何解决这个问题
答案 0 :(得分:-1)
/tmp/hudson3579240812233061648.sh: line 3: cd: /jenkins/workspace/completeness_compiler_runtime_tests/TPS/qel/automation/tools
错误在执行shell步骤中。在作业配置中该步骤的第3行,您将访问某个与工作区根目录相关的目录。您的wokrspace根可能是
/jenkins/workspace/completeness_compiler_runtime_tests/
使用completeness_compiler_runtime_tests作为作业的名称。 由于您刚刚删除了存储在/ jenkins / workspace / completeness_compiler_runtime_tests /中的所有内容,因此您无法cd到错误中提到的目录,因为它不存在。
此致
C.O。