我有一个 perl 脚本来将推荐的基线重新设置为 Dev 视图(Dev 视图位于 M: 驱动器中)。当我从命令提示符运行脚本时,它正在工作,但是当我从 Jenkins 调用时,相同的脚本失败。 (我在 Jenkins 中使用与登录 ID 相同的用户名。)如果我缺少任何配置,请建议我。
**Command which i used :**
cleartool rebase -complete -view <DEV_VIEW_TAG> -force -recommended -abort
****Jenkins Console Output:****
Advancing to baseline "<Recommended Baseline>" of component "<Component Name>"
Updating rebase view's config spec...
cleartool: Warning: Config spec OK, but unable to tell view server to load.
cleartool: Warning: View server should be restarted.
cleartool: Error: Unexpected error in rebase.
cleartool: Error: Unable to update configuration specification.
cleartool: Error: Unable to perform integration.
cleartool: Error: Unable to rebase stream "<DEV_STREAM>".
**Through Command Prompt - output:**
M:\>cleartool rebase -complete -view <DEV_VIEW_TAG> -force -recommended -abort
Advancing to baseline "<Recommended Baseline>" of component "<Component Name>"
Updating rebase view's config spec...
Creating integration activity...
Setting integration activity...
Merging files...
No versions require merging in stream "<DEV_STREAM>".
Checking in files...
Clearing integration activity...
Updating stream's configuration...
Cleaning up...
Rebase completed.
仔细检查失败的 JEnkins 作业中的用户名和其他环境变量。
这将验证您是否在与命令行中相同的条件下使用 ClearCase。
我总是看到该错误消息,因为当 Jenkins 作业尝试自己的变基时,变基正在进行中。
因此,在启动 Jenkins 作业之前,请确保该作业使用的视图中没有正在进行变基操作。
用户配置文件 = C:\Windows\System32\config\systemprofile
这正是我的想法:Jenkins 是使用系统帐户而不是您的帐户启动的。仔细检查 Jenkins Windows 服务:您应该能够更改用于运行它的帐户:使用您的帐户。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)