2017-08-03 87 views
1

我有一個perl腳本來將建議的基線重定義爲Dev視圖(Dev視圖位於M:驅動器中)。當我從命令提示符運行腳本時,它正在工作,但是當我從詹金斯打電話時,同樣的腳本失敗。 (我在Jenkins中使用與我的登錄ID相同的用戶名。)如果我缺少任何配置,請告訴我。Jenkins的Clearcase rebase問題

**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. 

回答

1

仔細檢查失敗的JEnkins作業中的USERNAME和其他環境變量。
這將驗證您使用ClearCase的條件與您的命令行中的條件相同。

我一直都看到這個錯誤信息,因爲在詹金斯工作嘗試進行自己的rebase時,rebase正在進行中。
因此,在啓動Jenkins作業之前,請確保在所述作業使用的視圖中沒有進行任何變形。

USERPROFILE = C:\ WINDOWS \ system32 \設置\ systemprofile

這正是我想:詹金斯推出了系統帳戶,而不是您的帳戶。仔細檢查Jenkins Windows服務:您應該能夠更改用於運行它的帳戶:使用您的帳戶。

+0

我相信沒有rebase正在進行,但我仍然得到同樣的問題。可能是我需要交叉驗證上面提到的其他環境變量。 –

+0

我看到環境變量有一些不匹配,如USERPROFILE = C:\ Windows \ System32 \ config \ systemprofile,TEMP但我的用戶環境變量像C:\ User \ XXXX。有什麼辦法可以覆蓋系統屬性文件。 –

+0

@Java_Sol我已經編輯了我的anszwer。 – VonC