Bamboo plan gets stuck if the artifact download has a source plan without successful runs

お困りですか?

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

コミュニティに質問


プラットフォームについて: 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 は除く

要約

It is possible for a plan not to run or get stuck/hung in case the artifact download has a source plan without successful runs. The job with a dependent artifact can hang during the initial branch build if triggered before artifact exists.

環境

Any versions of Bamboo.

診断

When running a plan if you see the below error in the UI or in the logs when a plan gets stuck or hung:

java.lang.RuntimeException: java.lang.IllegalArgumentException: Unable to find at least one successful result for plan: Test-plan com.atlassian.bamboo.chains.ChainPluginSupportHelper.lambda$prepareRuntimeTaskData$0(ChainPluginSupportHelper.java:50)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)

this would mean that one of the artifact download tasks is still pointing at the wrong plan or there was a dependency on an old plan.

原因

Bamboo generally assumes that if there's an artifact download task it makes so sense to run subsequent tasks that need this artifact. Thus, there has to be at least 1 successful build which has produced the artifact to be downloaded in a different plan and stage.

ソリューション

You can follow the below steps so that you can run the impacted plan:

  • Identify the blocking build which has a failing artifact download task.
  • From there you can use the plan key to identify the missing shared artifact that is blocking the build.
  • You can then disable the artifact download task and see if the plan now runs successfully. 

The error that is seen above matches a known bug that causes a job to hang indefinitely if the dependent artifact are not found:




最終更新日 2023 年 8 月 17 日

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

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