Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-22207

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

    XMLWordPrintable

Details

    • 0
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      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
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            73868399605e Eduardo Alvarenga
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: