diff --git a/content/en/code_coverage/_index.md b/content/en/code_coverage/_index.md index e213799937a1d..da990426574fd 100644 --- a/content/en/code_coverage/_index.md +++ b/content/en/code_coverage/_index.md @@ -12,8 +12,8 @@ algolia: tags: ["code coverage"] --- -{{< callout url="http://datadoghq.com/product-preview/code-coverage/" >}} -Code Coverage is in Preview. This product replaces Test Optimization's code coverage feature, which is being deprecated. Complete the form to request access for the new Code Coverage product. +{{< callout btn_hidden="true" header="false" >}} +Code Coverage is in Preview. This product replaces Test Optimization's code coverage feature, which is being deprecated. {{< /callout >}} [Code Coverage][1] lets you upload coverage reports to Datadog, visualize aggregated coverage data for pull requests, and block merges based on configurable coverage thresholds. diff --git a/content/en/code_coverage/data_collected.md b/content/en/code_coverage/data_collected.md index a5a180dd0675e..76d48b68fabf7 100644 --- a/content/en/code_coverage/data_collected.md +++ b/content/en/code_coverage/data_collected.md @@ -10,8 +10,8 @@ further_reading: text: "Set up Code Coverage" --- -{{< callout url="http://datadoghq.com/product-preview/code-coverage/" >}} -Code Coverage is in Preview. This product replaces Test Optimization's code coverage feature, which is being deprecated. Complete the form to request access for the new Code Coverage product. +{{< callout btn_hidden="true" header="false" >}} +Code Coverage is in Preview. This product replaces Test Optimization's code coverage feature, which is being deprecated. {{< /callout >}} ## Source Code Provider Integration @@ -42,6 +42,15 @@ See Gitlab's [webhook events and payloads documentation][1] for a detailed descr [1]: https://docs.gitlab.com/user/project/integrations/webhook_events/ +{{% /tab %}} +{{% tab "Azure DevOps" %}} + +Code Coverage relies on Azure DevOps webhooks. The webhooks do not include your source code content. They only include metadata about the pull request, such as the title, description, author, labels, and commit SHAs. + +See Azure DevOps' [webhook events and payloads documentation][1] for a detailed description of the data sent by webhooks. + +[1]: https://learn.microsoft.com/en-us/azure/devops/service-hooks/events?view=azure-devops#git.pullrequest.created + {{% /tab %}} {{< /tabs >}} diff --git a/content/en/code_coverage/setup.md b/content/en/code_coverage/setup.md index eb9159fd21fd0..6d6d961b4f79b 100644 --- a/content/en/code_coverage/setup.md +++ b/content/en/code_coverage/setup.md @@ -10,8 +10,8 @@ further_reading: text: "Learn what data is collected for Code Coverage" --- -{{< callout url="http://datadoghq.com/product-preview/code-coverage/" >}} -Code Coverage is in Preview. This product replaces Test Optimization's code coverage feature, which is being deprecated. Complete the form to request access for the new Code Coverage product. +{{< callout btn_hidden="true" header="false" >}} +Code Coverage is in Preview. This product replaces Test Optimization's code coverage feature, which is being deprecated. {{< /callout >}} Setting up Code Coverage involves the following steps: @@ -28,7 +28,7 @@ Code Coverage supports the following: {{< tabs >}} {{% tab "GitHub" %}} -See the [GitHub integration documentation][1] for detailed instructions for integrating with GitHub. +Follow instructions in the [GitHub integration documentation][1] on how to connect your GitHub repositories to Datadog. Code Coverage requires the following GitHub App permissions: | Permission | Access Level | Purpose | @@ -55,9 +55,22 @@ If everything is configured correctly, a green check mark is displayed in Datado {{% /tab %}} {{% tab "Gitlab" %}} -Follow instructions in the [Datadog Source Code Integration Guide][1] on how to connect your Gitlab repositories to Datadog. +Follow instructions in the [Gitlab Source Code integration documentation][1] on how to connect your Gitlab repositories to Datadog. -[1]: /integrations/guide/source-code-integration/?tab=gitlabsaasonprem#connect-your-git-repositories-to-datadog +See [Datadog Source Code Integration Guide][2] for additional context. + +[1]: /integrations/gitlab-source-code/ +[2]: /integrations/guide/source-code-integration/?tab=gitlabsaasonprem#connect-your-git-repositories-to-datadog +[2]: https://app.datadoghq.com/integrations/gitlab-source-code + +{{% /tab %}} +{{% tab "Azure DevOps" %}} + +Follow instructions in the [Datadog Source Code Integration Guide][1] on how to connect your Azure DevOps repositories to Datadog +using [Azure DevOps Source Code integration][2]. + +[1]: /integrations/guide/source-code-integration/?tab=azuredevopssaasonly#connect-your-git-repositories-to-datadog +[2]: https://app.datadoghq.com/integrations/azure-devops-source-code/ {{% /tab %}} {{< /tabs >}} @@ -302,6 +315,11 @@ Start-Process -FilePath "./datadog-ci.exe" -ArgumentList version {{% /tab %}} {{< /tabs >}} +#### Docker image + +Alternatively, you can update your CI job to run in a container based on the [Datadog CI Docker image][13]. +The image comes with `datadog-ci` preinstalled and ready to use. + ### Uploading coverage reports