title: Azure DevOps yaml pipeline expression not evaluating
body: <p>I'm trying to assign the <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-test-results?view=azure-devops&amp;tabs=trx%2Cyaml" rel="nofollow noreferrer">PublishTestResults@2</a> task's <code>failTaskOnFailedTests</code> argument in an <code>azure-pipelines.yml</code> file to be the result of an expression. The first time the tests are run, if there are any failed tests I want to fail the job. On subsequent attempts to <strong>Retry failed jobs</strong> I don't want to fail the job.</p>
  <p>I've set up the task like this (second to last line is where I'm setting the <code>failTaskOnFailedTests</code> argument):</p>
  <pre class="lang-yaml prettyprint-override"><code>    - task: PublishTestResults@2
        displayName: 'Publish Test Results'
        inputs:
          testResultsFormat: 'JUnit'
          testResultsFiles: '*.xml'
          searchFolder: '$(testsOutputPath)'
          mergeTestResults: true
          failTaskOnFailedTests: eq($(System.JobAttempt), 1)
          testRunTitle: 'Test Results $(System.JobAttempt)'
  </code></pre>
  <p>When I run the pipeline with system diagnostics enabled I can see this in the log:</p>
  <pre><code>##[debug]testRunTitle=Test Results 1
  ##[debug]publishRunAttachments=true
  ##[debug]failTaskOnFailedTests=eq(1, 1)
  ##[debug]searchFolder=/home/vsts/work/1/s/TestProject/cypress/reports/junit
  ##[debug]testRunner: JUnit
  ##[debug]testResultsFiles: *.xml
  ##[debug]mergeResults: true
  </code></pre>
  <p>The third line shows <code>failTaskOnFailedTests</code> being set to the expression statement, not the evaluated value of the expression. I'm at a loss for what I'm doing wrong. The expression seems in line with others in the <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/expressions?view=azure-devops" rel="nofollow noreferrer">Expressions documentation</a>.</p>
  <p>What am I missing?</p>