0
votes

I created a release pipeline in Azure DevOps to run my Cypress tests. Currently it hae the following tasks:

  1. Use Node (Node.js tool installer)
  2. Install Dependencies (nmp)
  3. Run Tests (npm)
  4. Publish Test Results (test result format JUnit)
  5. Send Email (powershell script)

my challange is - how to send TestResults_runId.zip as an $Attachment using my pwershell script ? test results where number is generetated Id

my powershell script

1

1 Answers

1
votes

There are many Azure DevOps MarketPlace extension automate this, you can refer to GitHub Send Email and apply to your PowerShell script, or you can just install it and use it within your Task YAML.