Details
-
Suggestion
-
Resolution: Fixed
-
2
-
Description
Problem Definition
AnyTask is not supported by Bamboo YAML Specs according to the documentation below:
https://docs.atlassian.com/bamboo-specs-docs/6.9.0/specs.html?yaml#configuring-unsupported-tasks
Suggested Solution
Add AnyTask to YAML Bamboo Specs.
Workaround
Currently is only possible to create AnyTask by using Java Specs, such as:
Map<String, String> configuration = new MapBuilder<String, String>() .put("existingRequirement", "isLinux") .put("regexMatchValue", "true") .put("requirementKey", "") .put("requirementMatchType", "match") .put("requirementMatchValue", "") .build(); AnyTask anyTask = new AnyTask(new AtlassianModule("com.atlassian.bamboo.plugin.requirementtask:task.requirements")) .configuration(configuration);