Cortex connects to many third-party vendors whose system interfaces frequently change. As a result, integration behavior or configuration steps may shift without notice. If you encounter unexpected issues, check with your system administrator or refer to the vendor’s documentation for the most current information. Additionally, integration sync times vary and are subject to scheduling overrides and timing variance.
- View information about CircleCI workflows and pipelines on entity pages in Cortex
- Create Scorecards that track progress and drive alignment on projects involving your CircleCI data
How to configure CircleCI with Cortex
Prerequisites
Before getting started:- Create a CircleCI API token.
Configure the integration in Cortex
- In Cortex, navigate to the CircleCI settings page.
- Click Integrations from the main nav. Search for and select CircleCI.
- Click Add configuration.
- Configure the integration form:
- Account alias: Enter an alias for this integration, used to tie entity registrations to different configurations.
- API token: Enter the value of the API token you created in CircleCI.
- Host: Enter the URL for your CircleCI instance if self-hosted, e.g.,
https://cortex.circleci.com
- Click Save.
How to connect Cortex entities to CircleCI
Editing the entity descriptor
You can define CircleCI projects in an entity’s YAML descriptor. Add its project slug under thex-cortex-circle-ci block:
Using the CircleCI integration
Viewing CircleCI information on entity pages
When an entity has a CircleCI project defined in its YAML file, you will see metric and pipeline details on an entity’s details page. Click CI/CD > CircleCI in the entity’s sidebar to see this information.Scorecards and CQL
With the CircleCI integration, you can create Scorecard rules and write CQL queries based on CircleCI metrics and pipelines. See more examples in the CQL Explorer in Cortex.Check for CircleCI flaky tests
Check for CircleCI flaky tests
Get all Circle CI flaky tests associated with the entity.Definition:
circleci.flakyTests()ExampleYou could create a Scorecard with a rule that verifies no flaky tests:Get Circle CI projects
Get Circle CI projects
Get all Circle CI projects associated with the entity.Definition:
circleci.projects()ExampleYou could also create a rule that checks for a success rate over 90%:View integration logs
This feature is available in Cortex cloud.

Still need help?↗
The following options are available to get assistance from the Cortex Customer Engineering team:- Email: help@cortex.io, or open a support ticket in the in app Resource Center
- Slack: Users with a connected Slack channel will have a workflow added to their account. From here, you can either @CortexTechnicalSupport or add a
:ticket:reaction to a question in Slack, and the team will respond directly.