blob: 19775a6a0a96c01c8755506de59869d09e36ce08 [file] [log] [blame]
Joey Armstrongc9614ce2023-01-25 16:21:27 -05001VOLTHA Components: ONOS
2=======================
3
4A few different processes exist for releasing the VOLTHA project and componets.
5Some are released through github using branches/tags/downloads.
6Others are released as packages on maven central.
7
8A jenkins job exists for releasing ONOS app
9
10- Maven central based release
11- Release process requires some manual steps.
12
13- `Jenkins Release Job <https://jenkins.opencord.org/job/onos-app-release/>`_
14
15 - Initiate a build with parameters for the target component.
16
17 - Use repository name not name of the app itself.
18 - Specify appVersion and apiVersion stored in the pom.xml file.
19
20 - Job will modify pom.xml and create pull requests based on version strings.
21
22 - NOTE: Two pull requests are created to modify pom.xml
23 - One for release (x.y.z)
24 - The second to revert to non-release version (x.(y+1).z-SNAPSHOT)
25 - Approve and merge the release version while performing the release.
26 - Once published approve the 2nd version change to re-attach the -SNAPSHOT suffix.
27
28 - Version x.y.z-SNAPSHOT is the default non-release version.
29 - Jenkins job will morph x.y.z-SNAPSHOT into x.y.z for the release.
30 - A gerrit pull request will be created under the release requestor(s) name.
31
32 - Approve the pom.xml pull request and merge.
33 - Merge will trigger (https://jenkins.opencord.org/job/maven-publish_sadis/ for sadis app, similar link for olt and other apps) that publish the artifact in the staging repo on oss.sonatype.org, you need to release it.
34 - Wait for build to complete
35 - Merge the patches here https://gerrit.opencord.org/q/owner:do-not-reply%2540opennetworking.org
36
37- Publish sonatype staging to maven central:
38
39 - Visit `https://oss.sonatype.org <https://oss.sonatype.org>`_
40 - Login with ONF credentials
41
42 - Search for org.opencord
43 - Click on "Staging repositories" (in the left side navigation)
44 - In the top right search for last part of the app name (eg: olt)
45 - Click release (top left bar, small button)
46 - `Wait until artifacts are published <https://search.maven.org/search?q=g:org.opencord>`_
47
48- Release all other apps/components (dependency hierarch):
49
50 - Iterate over individual components in order of increasing dependency volume.
51
52 - For ex olt depends on sadis
53 - Begin by releasing sadis first
54 - Once publishing has completed then olt can be released.
55
56 - Verify expected dependent version has been released.
57 - Modify pom.xml, update dep version(s) from x.z.y-SNAPSHOT to x.y.z
58 - Commit and submit.
59