为什么Jenkins不能将脚本更改为目录?

时间:2017-08-09 10:08:12

标签: jenkins

我正在尝试使用以下代码行构建一个jenkins作业,但它失败了。

cd ../../../../../
cd /home/skasturi/sdk/
cp -pr 8.0_Sprint2 8.0_Sprint3

jenkins build的控制台输出:

Building in workspace /var/lib/jenkins/workspace/SMGR_SDK
[SMGR_SDK] $ /bin/sh -xe /tmp/jenkins3461562069624051922.sh
+ cd ../../../../../
+ cd /home/skasturi/sdk/
/tmp/jenkins3461562069624051922.sh: line 3: cd: /home/skasturi/sdk/: Not a directory
Build step 'Execute shell' marked build as failure
Finished: FAILURE

观察者行为可能是什么原因?

0 个答案:

没有答案