Jenkins的Clearcase rebase问题 [英] Clearcase rebase Issue from Jenkins

查看:145
本文介绍了Jenkins的Clearcase rebase问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个perl脚本,可将建议的基准重新建立到Dev视图(Dev视图位于M:驱动器中).当我从命令提示符运行脚本时,它正在工作,但是当我从詹金斯(Jenkins)调用时,同一脚本失败. (我使用的用户名与Jenkins中的登录ID相同.)如果我缺少任何配置,请提出建议.

I have a perl script to rebase the recommended baseline to Dev view (Dev view is in M: drive). When i am running the script from command prompt it is working, but the same script is failing when i call from Jenkins. (I am using same username as my login id in Jenkins.) Please suggest me if i am missing any configuration.

**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作业中仔细检查您的USERNAME和其他环境变量.
这将验证您是否在与命令行相同的条件下使用ClearCase.

Double-check your USERNAME and other environment variable in the failed JEnkins job.
That will validate that you are using ClearCase in the same condition as in your command-line.

我总是看到该错误消息,因为在Jenkins作业尝试进行自己的重新设置时,正在进行重新设置.
因此,在启动Jenkins作业之前,请确保在该作业使用的视图中没有进行任何基准调整.

I have always seen that error message because a rebase was in progress at the time the Jenkins job was attempting its own rebase.
So make sure, before launching the Jenkins job, that no rebase is in progress in the view used by said job.

USERPROFILE = C:\ Windows \ System32 \ config \ systemprofile

USERPROFILE = C:\Windows\System32\config\systemprofile

这正是我的想法:Jenkins是使用系统帐户而不是您的帐户启动的.仔细检查Jenkins Windows服务:您应该能够更改用于运行该服务的帐户:使用您的帐户.

That is exactly what I thought: Jenkins is launched with a System account instead of your account. Double-check the Jenkins Windows service: you should be able to change its account used to run it: use yours.

这篇关于Jenkins的Clearcase rebase问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆