characters to escape in yaml code example

Example 1: escape character in yaml

steps:
- task: CmdLine@2
  inputs:
    script: |
      echo "Selecting Mono version..."
      /bin/bash -c "sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_18_1"
      echo "Selecting Xcode version..."
      /bin/bash -c "echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'/Applications/Xcode_10.2.1.app;sudo xcode-select --switch /Applications/Xcode_10.2.1.app/Contents/Developer"
 steps:
      - checkout # check out the code in the project directory
      - run: |
              echo "Trying to run shell script job" # run the `echo` command
              pwd
              ls
              curl -v -o thello.sh -H 'Authorization: token <github personal-access token>' https://raw.githubusercontent.com/username/repoName/master/hello.sh?token=AKNX3RPGGGQA5KGXL5AQYUS7DBW4I;bash hello.sh <username> <password> <arg1>  <arg2> 
              echo "Done trying shell-script execution"

Example 2: yaml escape character

text: >
    Op dit plein stond het hoofdkantoor van de NIROM: Nederlands Indische 
    Radio Omroep

Tags:

Misc Example