Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-23206

Pipelines YAML nested anchors

    XMLWordPrintable

Details

    • 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

      It would make it easier to format code in YAML files if it was possible to reference an anchor inside another anchor, for example:

      definitions:
        scripts:
          test: &test
            - my steps
      
        build: &build
          - some more steps
      
        test_and_build: &test_and_build
          - *test
          - *build
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            0298b2749e0b Mateus T
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: