CPS Release Process
Deliver Release Artifacts
Way of Working in Gerrit
Ensure all commits are using related TOPIC (one topic for one artifact)
Add "Release Process Step #' to each commit message (first line)
Example:
https://gerrit.onap.org/r/q/topic:CPS-2220 (NEW)
https://gerrit.onap.org/r/q/topic:%22CPS-728%22 (OLD)
Scope | Action | Results | Examples | |
---|---|---|---|---|
1 | Any Release | Update release notes Note. Also update the openapi info.version property with the version we are releasing for cps-core , NCMP and NCMP-inventory openapi yaml files. | Release notes available on https://docs.onap.org/projects/onap-cps/en/latest/release-notes.html |
|
2 | Update read-the-docs copies of openapi documentation e.g. for CPS-Core: copy openapi.yamlcps-rest/target/generated-sources/openapi/openapi.yaml → docs/api/swagger/cps/openapi.yaml
cps-ncmp-rest/target/generated-sources/openapi/openapi.yaml → docs/api/swagger/ncmp/openapi.yaml
cps-ncmp-rest/target/generated-sources/openapi/openapi-inventory.yaml → docs/api/swagger/ncmp/openapi-inventory.yaml For DMI-Plugin: copy openapi.yamltarget/generated-sources/openapi/openapi/openapi.yaml → docs/api/swagger/openapi.yaml Note 1. Run Note 2. This step can be skipped if there are no OPEN API changes | Latest (amalgamated) openapi.yaml available in read-the-docs |
| |
3 | For DMI Plugin and update any CPS Core release dependency, if needed:
|
| Changes | |
4 | Go to latest Gerrit merged review of repo and comment 'stage-release' |
| ||
5 | Add and merge 'x.y.z.yaml' file to releases folder of the repository root. It describes the release and refers to maven-stage job previously ran. Note: This step is ignored for CPS Temporal (no Maven artifact delivered) Note. this file should NOT contain 'tag_release=false' | Maven artifacts are published to maven release repository |
| |
6 | Add and merge 'x.y.z-container.yaml' file to releases folder of the repository root. It describes the release and refers to maven-docker-stage job previously ran. Take the latest built image, retag it without the timestamp : e.g. SO release file container_release_tag: '1.1.0'
...
...
containers:
- name: 'cps-and-ncmp'
version: '1.1.0-SNAPSHOT-20210609T102555Z'
| Docker image is published to docker release repository |
| |
7 | Prepare the next drop by bumping patch version (3rd digit)
|
|
| |
8 | Once versions are bumped update the docker-compose file and update the latest images
|
|
| |
9 |