Azure DevOps Integration¶
In this guide we'll show you how to set up an Azure DevOps Pipeline so Mayhem can automatically test your API on every push.
You will need the following to run Mayhem in your Azure DevOps pipeline:
- Create a Mayhem API token.
- Add the newly created token as a "Secret variable" in the pipeline's variables named
MAPI_TOKEN
Pipeline Configuration for Mayhem with Azure DevOps¶
Create a azure-pipelines.yml
file to configure an Azure DevOps pipeline to scan your API and upload a report as an artifact:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
Live GitHub Example¶
A full working example is available on GitHub: azure-pipelines-example.