更新时间:2023-12-05 18:51:34
请勿使用cleartool setview
(正如我在答案):它产生一个子外壳,该外壳使任何后续命令均不起作用(因为这些命令是在 parent 外壳中执行的,为此/vobs
分配了该外壳)
Don't use cleartool setview
(as I mention in this answer): it spawns a sub-shell which makes any subsequent command not working (because those commands are executed in the parent shell, for which /vobs
has been assigned to a view)
始终使用视图的完整路径:/view/yourView/vobs/yourVob
在您的情况下:
cd /view/johns/vobs/pts
/usr/atria/bin/cleartool catcs
ls
pwd
如果Jenkins ClearCase插件仍在使用setview,则按照此
If the Jenkins ClearCase Plugin is using setview anyway, then, as explained in this blog post, you must make sure it uses a -exe
directive:
cleartool setview -exec /tmp/script.sh
(带有/tmp/script.sh
包括所有其他命令)
(with /tmp/script.sh
including all your other commands)