Bamboo RSS Specs fail to download from Maven repository

お困りですか?

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

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

要約

Bamboo RSS Specs fail to download from the Maven repository. The following message appears in the Specs log:

[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/com/atlassian/bamboo/bamboo-specs-parent/9.2.4/bamboo-specs-parent-9.2.4.pom
Unable to scan repository My Repository (123456789) for Bamboo Specs
com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository My Repository (123456789) for Bamboo Specs
	at com.atlassian.bamboo.configuration.external.rss.RepositoryStoredSpecsExecutionServiceImpl.lambda$runSpecsWithMaven$0(RepositoryStoredSpecsExecutionServiceImpl.java:196)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	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:163)
	at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:116)
	at com.atlassian.bamboo.configuration.external.rss.RepositoryStoredSpecsExecutionServiceImpl.lambda$runSpecsWithMaven$0(RepositoryStoredSpecsExecutionServiceImpl.java:183)
	... 8 more

原因

  • The Bamboo server does not have direct internet access
  • A Maven outbound proxy configuration is missing

ソリューション

Add an outbound proxy or repository mirror setting into <bamboo-install>/tools/apache-maven-version/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>

Alternatively, you can add the same Maven properties to the Bamboo user's home folder on ~/.m2/settings.xml.


最終更新日 2023 年 9 月 29 日

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

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