Azure DevOps
Azure DevOps Integration in Avo Assure
Last updated
Azure DevOps Integration in Avo Assure
Last updated
Log in to Azure DevOps, and navigate to Project settings.
Click on the ‘Service Connections’ tab.
3. Click on ‘New Service Connection’. 4. Select the connection type as ‘Generic’ and click on Next. 5. Configuration for the connection should be as below:
Server URL: https ://< Avo Assure URL >/ExecuteTestSuite_ICE_SVN.
Leave authentication fields empty.
Give any service connection name. Example: Avo_Assure_Execution_API.
Uncheck ‘Grant access permissions to all pipelines’, if only specific pipelines will use service. If this option is unchecked, then upon running the pipeline with this service for first-time permission has to be granted for usage. (See Steps 6.13, 6.14 below).
Click on ‘Save’.
6. After completing the Service Connection configuration, navigate to CI/CD (Pipelines) configuration file.
7. Search and select the ‘Invoke Rest API’ task from the lists of tasks available on the right-hand side panel.
8. If the tasks panel is not available, click on the ‘Show Assistant’ option available in the top right corner of the editor.
9. Configuration for the task should look like this:
Select Connection Type as Generic.
Select the service created in step 5 for the Generic service connection.
Set Method as POST.
Leave Headers field unchanged.
Paste execution request data prepared above in Body.
Leave URL suffix and parameters empty.
In the Advanced section, select Completion event as ‘Callback’.
Click on ‘Add Task’.
10. Invoke REST API task is an agentless task. Make sure the Agent pool select for this job is ‘server’.
11. YML snippet looks like below after adding the task.
12. Click on ‘Save’ when editing is completed.
13. Before starting the execution, make sure that ICE is connected.
14. If the pipeline has not started with the message permission needed, then that means, ‘Grant access permission to all pipelines’ was not selected while creating the service (see step 5). And this is the first time that the pipeline is triggered using the newly created service. To continue, the execution permission has to be granted.
15. To do so, click on ‘View’ and then ‘Permit’.
16. Once the execution is completed, reports will be generated and can be viewed in the Avo Assure Reports plugin.
17. Depending on the execution status, the task will pass/fail. And depending on additional configuration, the pipeline status will be reflected as pass/fail.