• Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 7.1.0
    • Bamboo Specs
    • None
    • 34
    • 5
    • 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.

      Problem Definition

      Bamboo supports both Java Specs and YAML plan imports but currently it's only possible to View a plan as Java Specs, not as YAML.

      Suggested Solution

      Implement "View plan as YAML" similar to the technical preview released.

      Workaround

      None

            [BAM-19753] Export / View Plan as YAML

            Copied from https://jira.atlassian.com/browse/BAM-20803?focusedCommentId=2601141&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-2601141

            We've just upgraded Bamboo to 7.2.0 any testing AnyTask Yaml support:

            Some feedback from testing so far:

            We have a Teams notification on fail, but it's not supported as yet it seems, however the output generated is:

            notifications:
              - events:
                  - plan-failed
                recipients:
            # Notification recipient com.moveworkforward.bamboo.microsoft-teams-notifier:recipient.microsoftteams is not supported yet
             

             

            Which results in "Bamboo YAML import failed: Document structure is incorrect: notifications / [0] / recipients: Property is required."

            So we needed to remove the notifications block - ideally the export would realize that it should comment out the whole block if it was going to cause a non-importable Yaml as it's output

            Alexey Chystoprudov added a comment - Copied from  https://jira.atlassian.com/browse/BAM-20803?focusedCommentId=2601141&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-2601141 We've just upgraded Bamboo to 7.2.0 any testing AnyTask Yaml support: Some feedback from testing so far: We have a Teams notification on fail, but it's not supported as yet it seems, however the output generated is: notifications: - events: - plan-failed recipients: # Notification recipient com.moveworkforward.bamboo.microsoft-teams-notifier:recipient.microsoftteams is not supported yet   Which results in "Bamboo YAML import failed: Document structure is incorrect: notifications /  [0]  / recipients: Property is required." So we needed to remove the notifications block - ideally the export would realize that it should comment out the whole block if it was going to cause a non-importable Yaml as it's output

            Thank you d130d6ec89e7 for feedback

            We're going gradually implement YAML export for existing tasks depending on their popularity and usage statistics.

            Alexey Chystoprudov added a comment - Thank you d130d6ec89e7  for feedback We're going gradually implement YAML export for existing tasks depending on their popularity and usage statistics.

            This is wonderful news, thanks for the new release.

            Craig, Alexey Concerning point 3, getting the Any Task (BAM-20803) working in YAML would solve this issue as well.

            Ansel Stein added a comment - This is wonderful news, thanks for the new release. Craig, Alexey Concerning point 3, getting the Any Task ( BAM-20803 ) working in YAML would solve this issue as well.

            Rohit Sharma added a comment - - edited

            This is great news indeed, we will start testing this within the next week with our production data and share observations.

            Rohit Sharma added a comment - - edited This is great news indeed, we will start testing this within the next week with our production data and share observations.

            Thank you craig.castlemead1 for feedback.

            1. Created https://jira.atlassian.com/browse/BAM-21025
            2. You just mentioned that Script task exported incorrectly, and task.builder.script is plugin key of this task. To reproduce the issue can you please provide Java Specs which produces this error?
            3. After discussion with designers we decided to include all information about unsupported plan/deployment elements to produced code in form of comments. Adding  symbol to menu item would generate more confusion. I'll check if we can add more information about YAML format limitations to YAML Specs Code page header.

            Alexey Chystoprudov added a comment - Thank you craig.castlemead1  for feedback. Created  https://jira.atlassian.com/browse/BAM-21025 You just mentioned that Script task exported incorrectly, and task.builder.script is plugin key of this task. To reproduce the issue can you please provide Java Specs which produces this error? After discussion with designers we decided to include all information about unsupported plan/deployment elements to produced code in form of comments. Adding   symbol to menu item would generate more confusion. I'll check if we can add more information about YAML format limitations to YAML Specs Code page header.

            Great to have this functionality finally available. We've been able to easily convert our more straightforward builds (that don't require anytask support) to Yaml. 

            A few pieces of feedback:

            1. If a Script task is used and the script contains a # (as a comment or a #!/bin/bash ) then you get the error
            2. Task com.atlassian.bamboo.plugins.scripttask:task.builder.script is not supported yet
            1. For plans that can’t fully be exported as Yaml, I feel the UI isn’t as explicit as it could be, and this could trap some users - showing a  next to the Export Yaml specs option instead of relying the user noticing the comment in the resulting file would save some users headaches

            Craig Castle-Mead added a comment - Great to have this functionality finally available. We've been able to easily convert our more straightforward builds (that don't require anytask support) to Yaml.  A few pieces of feedback: If a Script task is used and the script contains a # (as a comment or a #!/bin/bash ) then you get the error Task com.atlassian.bamboo.plugins.scripttask:task.builder.script is not supported yet For plans that can’t fully be exported as Yaml, I feel the UI isn’t as explicit as it could be, and this could trap some users - showing a  next to the Export Yaml specs option instead of relying the user noticing the comment in the resulting file would save some users headaches

            +1

            Ed Cardinal added a comment - +1

            +1

            +1

            Sancerio added a comment -

            +1

            Sancerio added a comment - +1

              achystoprudov Alexey Chystoprudov
              jowen@atlassian.com Jeremy Owen
              Votes:
              203 Vote for this issue
              Watchers:
              100 Start watching this issue

                Created:
                Updated:
                Resolved: