Add coverage into ALM Octane (technical preview)
When working with a CI other than Jenkins (whose plugin supports coverage) you can use a PUT operation to inject coverage into ALM Octane. For information about the plugin, see Install and configure the ALM Octane CI plugin on your CI server.
To manually inject coverage created by your CI tool to the ALM Octane server:
Authenticate and sign in as a user with the necessary permissions.
Inject the coverage using the coverage custom resource into ALM Octane.
Check the status of the PUT operation.
Use the PUT operation to add a payload containing the coverage from your CI.
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,
JACOCOXMLdepending on the coverage file format.
Make sure the coverage was successfully added into ALM Octane.
- Check the return code. A return code of 200 indicates success.
- Check if the coverage exists in ALM Octane. For details, see View code coverage data in ALM Octane.