Plan initialization fails during start-up due to failed deletion

お困りですか?

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

コミュニティに質問

症状

The following error is thrown when Bamboo:


2010-08-31 14:38:58,464 INFO [main] [DefaultBuildDefinitionManager] Getting Build Configuration for 'GARBAGE-DEF'.
2010-08-31 14:38:58,470 ERROR [main] [BambooContainer] Cannot start bamboo
 java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
  at com.atlassian.bamboo.build.strategy.CronTriggerBuildStrategy.populateFromConfig(CronTriggerBuildStrategy.java:68)
  at com.atlassian.bamboo.fieldvalue.BuildDefinitionConverter.toObject(BuildDefinitionConverter.java:207)
  at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinitionFromBuild(DefaultBuildDefinitionManager.java:84)
  at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinition(DefaultBuildDefinitionManager.java:42)

As a result the plan initialization fails and Bamboo fails to start-up

原因

When deleting a plan, Bamboo sets the MARKED_FOR_DELETION flag to true. This will make Bamboo ignore the build check during the initialization.

Bamboo is having problems to obtain the Cron Expression data from the build.

診断

Please run the following query and provide us the result:


SELECT MARKED_FOR_DELETION FROM BUILD WHERE FULL_KEY="<plan_key>";

ソリューション

If the build is marked for deletion and the Boolean is set to true, then change it to false.

For MySQL execute the following SQL;


update BUILD set MARKED_FOR_DELETION=1 WHERE FULL_KEY="<plan_key>";

最終更新日 2012 年 11 月 21 日

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

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