Commit 00540b97 authored by Marcia Ramos's avatar Marcia Ramos

Merge branch '199065-support-on-demand-release-evidence-2' into 'master'

Documentation for On Demand Release Evidence

See merge request gitlab-org/gitlab!26760
parents 1da119ac 71e2db37
...@@ -456,6 +456,33 @@ Example response: ...@@ -456,6 +456,33 @@ Example response:
} }
``` ```
## Collect release evidence **(PREMIUM ONLY)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/199065) in [GitLab Premium](https://about.gitlab.com/pricing/) 12.10.
Create Evidence for an existing Release.
```plaintext
POST /projects/:id/releases/:tag_name/evidence
```
| Attribute | Type | Required | Description |
| ------------- | -------------- | -------- | ----------------------------------------------------------------------------------- |
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](../README.md#namespaced-path-encoding). |
| `tag_name` | string | yes | The tag where the release will be created from. |
Example request:
```shell
curl --request POST --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" "https://gitlab.example.com/api/v4/projects/24/releases/v0.1/evidence"
```
Example response:
```json
200
```
## Update a release ## Update a release
Update a Release. Update a Release.
......
...@@ -244,16 +244,20 @@ You can also edit an existing tag to add release notes: ...@@ -244,16 +244,20 @@ You can also edit an existing tag to add release notes:
> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/26019) in GitLab 12.6. > [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/26019) in GitLab 12.6.
Each time a new release is created, specific related data is collected in Each time a release is created, GitLab takes a snapshot of data that's related to it.
parallel. This dataset will be a snapshot this new release (including linked This data is called Release Evidence. It includes linked milestones and issues, and
milestones and issues) at moment of creation. Such collection of data will it is taken at moment the release is created. It provides a chain of custody and can
provide a chain of custody and facilitate processes like external audits, for example. facilitate processes like external audits, for example.
The gathered evidence data is stored in the database upon creation of a new You can also [use the API](../../../api/releases/index.md#collect-release-evidence-premium-only) to
release as a JSON object. In GitLab 12.6, a link to generate Release Evidence for an existing release. Because of this, [each release](#releases-list)
the evidence data is provided for [each Release](#releases-list). can have multiple Release Evidence snapshots. You can view the Release Evidence and
its details on the Release page.
Here is what this object can look like: Release Evidence is stored as a JSON object, so you can compare evidence by using
commonly-available tools.
Here is an example of a Release Evidence object:
```json ```json
{ {
...@@ -319,7 +323,14 @@ Please note that Release Evidence's data is collected regardless of this ...@@ -319,7 +323,14 @@ Please note that Release Evidence's data is collected regardless of this
feature flag, which only enables or disables the display of the data on the feature flag, which only enables or disables the display of the data on the
Releases page. Releases page.
### Scheduled Evidence creation ### Collect release evidence **(PREMIUM ONLY)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/199065) in [GitLab Premium](https://about.gitlab.com/pricing/) 12.10.
Evidence collection can be initiated by using an [API call](../../../api/releases/index.md#collect-release-evidence-premium-only) at any time. Evidence snapshots are visible on
the Release page, along with the timestamp the Evidence was collected.
### Schedule release evidence collection
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23697) in GitLab 12.8. > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23697) in GitLab 12.8.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment