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

The YML Validator for Pipelines does not show any syntax errors for yml anchors

      As per the title, the YML validator for Pipelines (https://bitbucket-pipelines.prod.public.atl-paas.net/validator) does not show any syntax errors for yml anchors.

      This is highlighted in this example public repository: https://bitbucket.org/rtest123/anchor-indentation/addon/pipelines/home#!

      Added by tboudale :

      I would also like to add that sometimes a YML anchor also breaks validation in other parts of the yml file.

      E.g.

      definitions: 
        steps:
          - step: &build-test
            name: Build and test
            script:
              - echo "hello"
            artifacts:
              - target/**
      
      pipelines:
        branches:
          anchor:
            -step: *build-test
          master:
            - step: *build-test
      
      

      Above^ the lack of a space between '-' and 'step' for the branch named 'anchor', is not indicated by the validator.

          Form Name

            [BCLOUD-18299] The YML Validator for Pipelines does not show any syntax errors for yml anchors

            SET Analytics Bot made changes -
            UIS Original: 4318 New: 6528
            SET Analytics Bot made changes -
            Support reference count Original: 30 New: 31
            SET Analytics Bot made changes -
            UIS Original: 4316 New: 4318
            SET Analytics Bot made changes -
            UIS Original: 4314 New: 4316
            SET Analytics Bot made changes -
            Support reference count Original: 29 New: 30
            SET Analytics Bot made changes -
            UIS Original: 2122 New: 4314
            SET Analytics Bot made changes -
            UIS Original: 2129 New: 2122
            SET Analytics Bot made changes -
            UIS Original: 2128 New: 2129
            SET Analytics Bot made changes -
            UIS Original: 2127 New: 2128
            SET Analytics Bot made changes -
            UIS Original: 2126 New: 2127

              Unassigned Unassigned
              lmontiel@atlassian.com Leonardo M
              Affected customers:
              18 This affects my team
              Watchers:
              30 Start watching this issue

                Created:
                Updated: