When exporting Bamboo Plan with a disabled DockerPushImageTask the Java specs is not showing it as disabled

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 9.2.20, 9.6.8, 10.0.3
    • Affects Version/s: 9.6.0, 10.0.0
    • Component/s: Bamboo Specs
    • None
    • 1
    • Severity 3 - Minor

      Issue Summary

      This is reproducible on Data Center: Yes

      When exporting Bamboo Plan with a disabled DockerPushImageTask the Java specs  is not showing it as disabled

      Steps to Reproduce

      1. Created a Plan with a DockerPushImageTask and check the "Disable this task" 
      2. Export the plan as Java Specs

      Expected Results

      DockerPushImageTask in exported Bamboo Java Specs is disabled

      Actual Results

      DockerPushImageTask in exported Bamboo Java Specs is not disabled

           public Plan plan() {
              final Plan plan = new Plan(new Project()
                      .oid(new BambooOid("1orygrh9j0nwh"))
                      .key(new BambooKey("PRO"))
                      .name("PRO"),
                  "PLAN",
                  new BambooKey("PLAN"))
                  .oid(new BambooOid("1ororjvwb6vi9"))
                  .pluginConfigurations(new ConcurrentBuilds())
                  .stages(new Stage("Default Stage")
                          .jobs(new Job("Default Job",
                                  new BambooKey("JOB1"))
                                  .tasks(new DockerPushImageTask()
                                          .dockerHubImage("namespace/repository:tag")
                                          .defaultAuthentication())))
                  .planBranchManagement(new PlanBranchManagement()
                          .delete(new BranchCleanup())
                          .notificationForCommitters());
              return plan;
          }
      

      Workaround

      Use the view as YAML export

        1. image-2024-10-14-18-42-22-605.png
          123 kB
          Vani
        2. screenshot-1.png
          117 kB
          Vani

              Assignee:
              Marcin Gardias
              Reporter:
              Vani
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: