本文介绍了Jenkins在ClearCase中创建视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Jenkins和ClearCase进行自动构建,但是我遇到了问题.我编写了一个批处理脚本,以使用cleartool命令mkview在ClearCase中创建视图.

I'm working on an automatic build using Jenkins and ClearCase and I have a problem.I wrote a batch script to create a view in ClearCase using the cleartool command mkview.

当我通过单击脚本执行脚本时,一切正常,该视图在ClearCase中创建.但是,当我通过Jenkins启动脚本时,出现以下错误:

When I execute the script by clicking on it, everything works, the view is created in ClearCase. But when I launch the script via Jenkins, I have the following errors :

C:\Program Files\Jenkins\workspace\JenkinsLecon1>
"C:\Program Files\IBM\RationalSDLC\ClearCase\bin\cleartool.exe"
  mkview -sna -tag AUTOBUILD_VIEW_TEST1_CFW_INFRA_V5.10_Dev -str CFW_INFRA_V5.10_Dev@\projects -host sasla15001 -hpath d:\ClearCase_Storage\views\DOM3\268875\ -gpath \\sasla15001\ccstg_d\views\DOM3\268875\ CFW_INFRA_V5.10_Dev
Selected Server Storage Location "sasla15001_ccstg_d_views".

cleartool: Error: unable to set access control list for \\sasla15001\ccstg_d\views\AUTORITE+NT\SYSTEM\CFW_INFRA_V5.10_Dev.22.vws: Accès refusé.
cleartool: Error: protection on \\sasla15001\ccstg_d\views\AUTORITE+NT\SYSTEM\CFW_INFRA_V5.10_Dev.22.vws is out-of-synch with identity.sd and groups.sd
cleartool: Error: Failed to set identity on view: Permission denied
cleartool: Error: unable to set access control list for \\sasla15001\ccstg_d\views\AUTORITE+NT\SYSTEM\CFW_INFRA_V5.10_Dev.22.vws: Accès refusé.
cleartool: Error: \\sasla15001\ccstg_d\views\AUTORITE+NT\SYSTEM\CFW_INFRA_V5.10_Dev.22.vws:
 Permission denied
cleartool: Error: Unable to create view "\\sasla15001\ccstg_d\views\AUTORITE+NT\SYSTEM\CFW_INFRA_V5.10_Dev.22.vws".

我非常确定该错误来自访问权限问题.
但是我没有找到像-user这样的mkview选项或类似的东西来使用我的clearcase用户帐户.

I pretty sure that the error come from an access right problem.
But I did not find an mkview option like -user or something like that to user my clearcase user account.

我希望有人遇到同样的问题并解决它,或者只是有人可以帮助我!

I hop that someone had the same problem and solve it or just someone who can help me!

推荐答案

对于那些有相同问题的人,解决方案是以管理员身份启动Jenkins.为此:

For those who have the same problem, the solution is start Jenkins as administrator.To do this :

1)以管理员身份打开提示命令

1) open a prompt command as administrator

然后右键单击提示命令,然后选择启动为

Then right click on prompt command and choose start as

2)转到Jenkins目录

2) go to Jenkins directory

3)启动Jenkins服务器

3) start Jenkins Server

等到服务器运行,此行将出现INFO:Jenkins已完全启动并正在运行

wait until the sever is running this line will appear INFO:Jenkins is fully up and running

现在Jenkins服务器正在以管理员身份运行

now the Jenkins server is running as administrator

4)打开您的网络浏览器,然后转到

4)open your web browser and go to

5)创建工作!!

要知道工作区在哪里,只需创建一个新的批处理脚本并添加命令行

to know where is the workspace just create a new batch script add the command line

保存并构建作业.接下来转到控制台,只需阅读路径

save and build the job. Next go to the console and just read the path

这篇关于Jenkins在ClearCase中创建视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 20:03