Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
0
-
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