Adding a colon in a string in Pipelines .yml file breaks the build

XMLWordPrintable

      Summary

      Adding a colon in a string in Pipelines .yml file breaks the build

      Steps to Reproduce

      1. Create a bitbucket-pipelines.yml with the following content:
      #!python
      
      pipelines:
        default:
        - step:
            script:
              - echo "Test: Colon"
      
      1. Push to trigger a build

      Expected Results

      The build runs successfully

      Actual Results

      The build fails with the following error:

      It looks that the colon in the string might be interpreted as a yaml separator?

      Notes

      For some reason, including the echo command in the string works:

      #!python
      
      pipelines:
        default:
        - step:
            script:
              - "echo Test: Colon"
      

              Assignee:
              Unassigned
              Reporter:
              Theodora Boudale (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: