Bamboo Specs requireAllStagesPassing(true) does not update plan

XMLWordPrintable

    • Severity 3 - Minor

      Summary

      Trigger dependencies only when all stages have been run successfully is not being selected when requireAllStagesPassing(true) method gets called.

      Environment

      • Bamboo v6.3.1, 6.3.2

      Steps to Reproduce

      Implement method described in https://docs.atlassian.com/bamboo-specs-docs/6.3.1/specs-java.html#dependencies

      Plan plan = new Plan(project, "My Plan One", "PLAN1")
          .description("This is an example of a plan")
          .enabled(true)
          .stages(stage1)
          .dependencies(new Dependencies()
              .configuration(new DependenciesConfiguration()
                  .requireAllStagesPassing(true))
              .childPlans(new PlanIdentifier("PROA", "PLAN2"), new PlanIdentifier("PROA", "PLAN3")));
      

      Expected Results

      Checkbox Trigger dependencies only when all stages have been run successfully in Plan configuration >> Dependencies should be checked.

      Actual Results

      Checkbox Trigger dependencies only when all stages have been run successfully is unchecked

      Workaround

      Make use of pluginConfigurations until this issue gets fixed:

      .dependencies(new Dependencies().childPlans(new PlanIdentifier(projectKey, planKey)))
                      .pluginConfigurations(new AllOtherPluginsConfiguration()
                              .configuration(new MapBuilder()
                                  .put("custom.dependencies.triggerOnlyAfterAllStages", "true")
                                  .build()));
      

      custom.dependencies.triggerOnlyAfterAllStages relates to option Trigger dependencies only when all stages have been run successfully under Plan configuration >> Dependencies tab (Reference: https://docs.atlassian.com/bamboo-specs-docs/6.3.2/specs-java.html#dependencies)

            Assignee:
            Marcin Gardias
            Reporter:
            Rafael Sperafico (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: