title: Azure pipelines fail build when one of test maven tasks fails
body: <p>Hello how to fail the build when one of 6 maven tasks (running selenium tests) experiences assertion error? Right now I have something like this: 6 of such tasks. Also is it possible to publish one test results as one big one result because right now it publishes it for every task and it does not fail on error.</p>
  <pre><code>- task: Maven@3
    condition: eq('${{parameters.Browser }}', 'All')
    inputs:
      mavenPomFile: 'pom.xml'
      mavenOptions: '-Xmx3072m'
      javaHomeOption: 'JDKVersion'
      jdkVersionOption: '1.8'
      jdkArchitectureOption: 'x64'
      publishJUnitResults: true
      testResultsFiles: '**/surefire-reports/TEST-*.xml'
      goals: -Dsurefire.suiteXmlFiles=src/test/resources/testsuites/DMTool/${{ parameters.Test }}.xml -Dbrowser=Edge -Denv=${{ parameters.Env }} test
   
  </code></pre>
  <h1>End of tasks for ALL</h1>
  <h1>Publish results</h1>
  <pre><code>- task: PublishTestResults@2
    inputs:
      testResultsFormat: 'JUnit' 
      testResultsFiles: '**/surefire-reports/TEST-*.xml'
      failTaskOnFailedTests: true 
      testRunTitle: ${{ parameters.Test }}  ${{ parameters.Browser }}  ${{ parameters.Env }}
    condition: succeededOrFailed() 
  </code></pre>