Unable to extract client root from Perforce

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

Bamboo shows the error below when running a plan that checks out from a Perforce repository:

com.atlassian.bamboo.repository.RepositoryException: Unable to extract 
client root from Perforce, therefore could not evaluate where the source
 will be checked out to.
	at com.atlassian.bamboo.repository.perforce.PerforceManager.getClientRoot(PerforceManager.java:196)
	at com.atlassian.bamboo.repository.perforce.PerforceRepository.getSourceCodeDirectory(PerforceRepository.java:642)
...
Caused by: com.tek42.perforce.PerforceException: Failed to validate perforce client bamboo_android
	at com.atlassian.bamboo.repository.perforce.PerforceManager.ensureClientIsValid(PerforceManager.java:253)
	at com.atlassian.bamboo.repository.perforce.PerforceManager.getPerforceWorkspace(PerforceManager.java:219)
	at com.atlassian.bamboo.repository.perforce.PerforceManager.getClientRoot(PerforceManager.java:171)
	... 10 more
Caused by: com.tek42.perforce.PerforceException: The client 
'bamboo_android' was not found in the list of clients 
retrieved from the Perforce server using the 'clients' command
	at com.atlassian.bamboo.repository.perforce.PerforceManager.ensureClientIsValid(PerforceManager.java:248)
	... 12 more

原因

The common causes are:

  1. The client root does not exist on the server or agent box.
  2. Bamboo cannot create this directory automatically.
  3. Perforce executable is missing on the Bamboo server and/or the agent machine.
  4. Bamboo is running as a service with an account that is not a local admin as recommended.

ソリューション

  1. Ensure that the client root exists on the Bamboo server (or agent) machine. If necessary, create the directory locally for the Perforce client.
  2. If the build is running on a Windows remote agent that runs as a service, make sure to use a local admin account to run the service: Running Bamboo as the local user.
  3. Check if Perforce exists as a capability on both Bamboo server and agent machines with a correct path.
最終更新日 2018 年 11 月 2 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.