Make sure you have the test suite created and the test suite id, if not create your test suite in Protect: https://protect.lumar.io/
Add the following task to your azure devops pipeline yaml file:
- task: run-lumar-protect-build-task@1
displayName: 'Lumar Protect'
inputs:
userKeyId: 'USER_KEY_ID' (string - generate new api key on Lumar core app)
userKeySecret: 'USER_KEY_SECRET' (string - generate new api key on Lumar core app)
testSuiteId: 'TEST_SUITE_ID' (string - use your created test suite id)
ciBuildId: 'CI_BUILD_ID' (optional - string)
startOnly: false (optional - boolean - use it if you want to skip polling)
Note: Unless startOnly is set to true, max polling time is set to 50 minutes. If the build takes longer than 50 minutes, it will automatically fail the pipeline.