Skip to main content

CI/CD pipeline integration

In order to integrate Octomind into your CI/CD pipeline, you will need a Azure DevOps Task and a Azure Pipeline Extension.
GitHub flow

Octomind Azure Flow

1. Setup CI Task

Include the following Azure DevOps Task into your CI/CD build pipeline on pull request. See azure task docs for more details.
- task: automagicallyexecute@2
  inputs:
    url: <publicly accessible url to your deployment>
    token: ${{ secrets.OCTOMIND_API_KEY }}
    testTargetId: <your testTargetId from your octomind project>
    blocking: false
Please make sure to integrate the GitHub action AFTER your deployment step. You have to link octomind to your publicly accessible app / branch deployment url to run tests on it.

2. Install Azure DevOps pipeline extension

We need read and write access to pull requests ONLY so we are allowed to comment back with test results. We won’t be able to see your code.
Install pipeline extension from here: pipelines extension
Octomind Azure install

Octomind Azure install, screenshot 06/2023

3. Set user permissions

Make sure that your build service user also has permissions to comment to pull requests. To do so, navigate to the Project Settings > Repos > Repositories > Security tab and allow the ‘contribute to pull request’ flag.
Octomind Azure permissions

Octomind Azure pipeline permissions, screenshot 06/2023

4. See it in action

Octomind automatically runs tests on your pull request, and comments with a summary in your PR.
Example of Octomind test results in a pull request comment in Azure DevOps, screenshot 06/2023

Example of Octomind test results in a pull request comment, screenshot 07/2023