title: Setting pipeline variable contains extraneous double or single quote
body: <p>I have the following command to set a <code>BASE_URL</code> variable in Azure DevOps yaml:</p>
  <pre><code>- script: |
      echo &quot;##vso[task.setvariable variable=BASE_URL;]$(PROD-CONTAINER-URL)&quot;
    condition: and(succeeded(), eq(variables['Build.SourceBranchName'], 'master'))
  </code></pre>
  <p>However whenever I echo the variable then it looks like this:</p>
  <p><code>https://google.com&quot;</code></p>
  <p>If I replace it with a single quote or put the <code>$(PROD-CONTAINER-URL)</code> inside or outside the quotes then the problem still persists. How can I get around this and what causes it?</p>