Bamboo RSS Specs fail to download from Maven repository

お困りですか?

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

コミュニティに質問

問題

Bamboo RSS Specs fail to download from Maven repository.

The following appears in the Specs log:

[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Downloading: https://repo.maven.apache.org/maven2/com/atlassian/bamboo/bamboo-specs-parent/6.8.1/bamboo-specs-parent-6.8.1.pom
Unable to scan repository Bamboo-Specs-Test (174882822) for Bamboo Specs
com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository Bamboo-Specs-Test (174882822) for Bamboo Specs
	at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithMaven$9(RepositoryStoredSpecsServiceImpl.java:821)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
	at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
	at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
	at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
	at java.lang.Thread.run(Thread.java:748)
Caused by: com.atlassian.utils.process.ProcessTimeoutException: process timed out
	at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:664)
	at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:161)
	at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:114)
	at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithMaven$9(RepositoryStoredSpecsServiceImpl.java:808)
	... 8 more

原因

The machine hosting Bamboo does not have internet access.

ソリューション

Add outbound proxy or repository mirror setting into BAMBOO_INSTALL/tools/apache-maven-*/conf/settings.xml like the following example:

<proxies>
	<proxy>
    	<id>optional</id>
      	<active>true</active>
      	<protocol>http</protocol>
      	<username>proxyuser</username>
      	<password>proxypass</password>
      	<host>proxy.host.net</host>
      	<port>80</port>
      	<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
  	</proxy>
<proxies>
<servers>
   	<server>
     	<id>deploymentRepo</id>
      	<username>repouser</username>
      	<password>repopwd</password>
    </server>
</servers>
<mirrors>
    <mirror>
      	<id>mirrorId</id>
      	<mirrorOf>repositoryId</mirrorOf>
      	<name>Human Readable Name for this Mirror.</name>
      	<url>http://my.repository.com/repo/path</url>
    </mirror>
</mirrors>
説明Bamboo RSS Specs fail to download from Maven repository
製品Bamboo
最終更新日 2019 年 9 月 12 日

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

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