Allow YAML Specs to disable the docker runner when the Plan configuration defaults do a docker container

XMLWordPrintable

    • 0

      As per https://docs.atlassian.com/bamboo-specs-docs/latest/specs.html?yaml#docker:

      To disable Docker in YAML, remove the configuration from the file.

      When a customer wants to have a default docker entry at the Plan level to be used as a default setting, but still wants a specific Job to not use docker, one has to remove the default docker entry and add individual docker properties to each Job.

      Please introduce a mechanism that would exclude docker properties in YAML from a specific Job and still allow other Jobs to inherit the Plan settings.

      This is already implemented in Java Specs by using:

      DockerConfiguration dockerConfiguration = new DockerConfiguration()
          .enabled(false);

      For example:

      ---
      version: 2
      
      plan:   
        project-key: ROCKET
          key: LAUNCH
          name: Launch Rocket
      
      docker: ubuntu
      
      # ...
      
      # This will inherit docker: ubuntu
      Build Ship:   
        tasks:     
        - script:       
        - echo 'Building ship...'
        - echo 'Completed!'
      
      # ...
      
      Land Ship:   
        tasks:     
        - script:       
        - echo 'Preparing for landing...'
        - echo 'Boom!'
        # This will disable the container and run at the "Agent level"
        docker:     
          enabled: false # <<<<< here
      

            Assignee:
            Unassigned
            Reporter:
            Eduardo Alvarenga (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: