2017-08-03 4 views
1

私はDevベースのビューをDevビュー(DevビューはM:ドライブ)にリベースするperlスクリプトを用意しています。コマンドプロンプトからスクリプトを実行しているときに動作していますが、Jenkinsからコールすると同じスクリプトが失敗しています。 (私はJenkinsのログインIDと同じユーザー名を使用しています)。構成が不足している場合は、私に提案してください。Clearcase rebase Jenkinsの問題

**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を使用していることを検証します。

Jenkinsジョブが独自のリベースを試行していたときにリベースが進行中だったので、私はいつもそのエラーメッセージを見てきました。
Jenkinsジョブを起動する前に、ジョブによって使用されているビューでリベースが進行中でないことを確認してください。

USERPROFILE = C:\ WINDOWS \ System32に\ CONFIG \

思ったまさにです

systemprofile:ジェンキンスはなく、アカウントのシステムアカウントで起動されます。 Jenkins Windowsサービスを再確認してください。実行するアカウントを変更する必要があります:あなたのアカウントを使用してください。

+0

私はリベースが進行中ではないと確信していますが、それでも私は同じ問題を抱えています。私はあなたが上記のように他の環境変数を検証する必要があります。 –

+0

私は環境変数にUSERPROFILE = C:¥Windows¥System32¥config¥systemprofileのようないくつかの不一致があるのを見ていますが、TEMPですが、ユーザ環境変数はC:\ User \ XXXXのようです。システムプロパティファイルをオーバーライドする方法はありますか? –

+0

@Java_Sol私はそれに応じて私のanszwerを編集しました。 – VonC

関連する問題