Share this page

# Add coverage (technical preview)

When working with a CI other than Jenkins (whose plugin supports coverage) you can use a PUT operation to inject coverage into OpenText Software Delivery Management. For information about the plugin, see CI server integration.

In this topic:

## Flow

You can manually inject coverage created by your CI tool to the OpenText Software Delivery Management server.

To manually inject the CI coverage:

1. Authenticate and sign in as a user with the necessary permissions.

2. Inject the coverage using the coverage custom resource.

3. Check the status of the PUT operation.

Back to top

## Inject the coverage

Use the PUT operation to add a payload containing the coverage from your CI.

`http[s]://<server>:<port>/internal-api/shared_spaces/1001/analytics/ci/coverage?ci-server-identity={{ciServerIdentity}}&ci-job-id={{ciJobId}}&ci-build-id={{ciBuildId}}&file-type={{fileType}}`

Use the following parameters:

- ciServerIdentity: A string representing the CI server id, which is the instance_id field in the ci_server entity.
- ciJobId: A string representing the CI job id, which is the ci_id field in the ci_job entity.
- ciBuildId: A string representing the CI build id, which is the build_ci_id field in the ci_build entity.
- fileType: A string representing the format of the coverage report, `LCOV` or `JACOCOXML` depending on the coverage file format.

Back to top

## Check the status

Make sure the coverage was successfully added.

To check if the coverage was added:

1. Check the return code. A return code of 200 indicates success.
2. Check if the coverage exists. For details, see View code coverage data.

Back to top

See also:

- Add a log (technical preview)
- Add vulnerability issues

https://admhelp.microfocus.com Software Delivery Management 8942
Tips to improve your search results... OpenText™ Software Delivery Management Help Center OpenText™ Software Delivery Management Help 26.1 All View Local Help Center View Online Help Center Version: