Integrations tab

In the Integrations tab, you can configure Automated tests and Automated deployment options.

To learn how to enable automated tests and deployment for a P4 Code Review project, watch this video or review the instructions following the video.

Overview

You can configure settings for automated tests and automated deployment independently.

  • Changes to configuration are saved immediately.

  • Updates only take effect when the corresponding toggle is enabled.

Project integration settings are visible to project members but can only be modified by project owners or administrators.

Project-level test and deployment features are planned for deprecation in a future release. Use test integrations within reviews where possible. To learn more, see Add a test.

Automated tests

Use automated tests to trigger an external test system when reviews are created or updated.

When enabled, automated tests run automatically when reviews are created or updated.

To enable automated tests:

  1. Enable the Automated tests toggle.

  2. Provide a URL that triggers an external test system.

  3. Use the available parameters to include details about the review in the request.

The external system runs the tests and reports the results back to P4 Code Review.

POST parameter format

Select how POST parameters are sent to the test system:

  • URL Encoded - Parameters are sent as name=value pairs.

  • JSON Encoded - Parameters are sent as raw JSON in the POST body.

For more details about automated tests, see Automated testing for reviews.

Automated deployment

Use automated deployment to trigger an external deployment system when reviews are created or updated.

When enabled, deployment is triggered automatically when reviews are created or updated.

To enable automated deployment:

  1. Enable the Automated deployment toggle.

  2. Provide a URL that triggers an external deployment system.

  3. Use the available parameters to include details about the review in the request.

The external system processes the deployment using the supplied review information.

To learn more, see Automatically deploy code within a review