blob: cc2af3c83d8e84aa42fc4178bb0d5af7ef2f7659 [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
Joey Armstrong9a771062023-06-03 23:57:43 -040015 - `MVN Plugin Upgrade <https://gerrit.opencord.org/c/sadis/+/34230>`_
16 - `5.11.0 (deploy) <https://gerrit.opencord.org/c/sadis/+/34231>`_
17 - `5.12.0-SNAPSHOT (dev) <https://gerrit.opencord.org/c/sadis/+/34232>`_
18
Joey Armstrongc9614ce2023-01-25 16:21:27 -050019 - Initiate a build with parameters for the target component.
20
21 - Use repository name not name of the app itself.
22 - Specify appVersion and apiVersion stored in the pom.xml file.
23
Joey Armstrong9a771062023-06-03 23:57:43 -040024 - Files modified by jenkins: pom.xml, app/pom.xml, api/pom.xml
25
26.. list-table:: Job paramters
27 :widths: 10, 40
28 :header-rows: 1
29
30 * - Field
31 - Value
32 * - appRepo
33 - sadis
34 * - appName
35 - sadis
36 * - apiVersion
37 - 5.11.0 (pom.xml: 5.11.0-SNAPSHOT)
38 * - nextApiVersion
39 - 5.12.0
40 * - version
41 - 5.11.0
42 * - nextVersion
43 - 5.12.0
44 * - branch
45 - master (?)
46
47
48 - Jenkins jobs from `release matrix: v2.12 <https://wiki.opennetworking.org/display/VOLTHA/v2.12+-+Jenkins+jobs+and+failures>`_
49 - `changeset approval for job merge<https://gerrit.opencord.org/q/owner:do-not-reply%2540opennetworking.org>`_
50 - pom.xml non-SNAPSHOT (first approved changeset)
51 - `licensed <https://jenkins.opencord.org/job/verify_sadis_licensed/>`_
52 - `verify <https://jenkins.opencord.org/job/verify_sadis_maven-test/>`_
53 - pom.xml non-SNAPSHOT (second approved changeset)
54 - `publish <https://jenkins.opencord.org/job/maven-publish_sadis/>`_
55
56 - Job will modify pom.xml and create pull requests based on version strings.
Joey Armstrongc9614ce2023-01-25 16:21:27 -050057
58 - NOTE: Two pull requests are created to modify pom.xml
Joey Armstrong9a771062023-06-03 23:57:43 -040059
Joey Armstrongc9614ce2023-01-25 16:21:27 -050060 - One for release (x.y.z)
61 - The second to revert to non-release version (x.(y+1).z-SNAPSHOT)
62 - Approve and merge the release version while performing the release.
63 - Once published approve the 2nd version change to re-attach the -SNAPSHOT suffix.
64
65 - Version x.y.z-SNAPSHOT is the default non-release version.
66 - Jenkins job will morph x.y.z-SNAPSHOT into x.y.z for the release.
67 - A gerrit pull request will be created under the release requestor(s) name.
68
69 - Approve the pom.xml pull request and merge.
70 - 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.
71 - Wait for build to complete
72 - Merge the patches here https://gerrit.opencord.org/q/owner:do-not-reply%2540opennetworking.org
73
Joey Armstrong9a771062023-06-03 23:57:43 -040074- Artifact staging on sonatype, published to maven central:
Joey Armstrongc9614ce2023-01-25 16:21:27 -050075
76 - Visit `https://oss.sonatype.org <https://oss.sonatype.org>`_
77 - Login with ONF credentials
78
Joey Armstrong9a771062023-06-03 23:57:43 -040079 - In the Artifact Search box
80
81 - Search for org.opencord
82 - Find the package of interest (pkg, app, api)
83 - Click 'Show All Versions'
84 - Verify the released version exists
85
Joey Armstrongc9614ce2023-01-25 16:21:27 -050086 - Click on "Staging repositories" (in the left side navigation)
87 - In the top right search for last part of the app name (eg: olt)
Joey Armstrong9a771062023-06-03 23:57:43 -040088 - Enable checkbox for the versioned package (status: closed).
Joey Armstrongc9614ce2023-01-25 16:21:27 -050089 - Click release (top left bar, small button)
90 - `Wait until artifacts are published <https://search.maven.org/search?q=g:org.opencord>`_
91
92- Release all other apps/components (dependency hierarch):
93
94 - Iterate over individual components in order of increasing dependency volume.
95
96 - For ex olt depends on sadis
97 - Begin by releasing sadis first
98 - Once publishing has completed then olt can be released.
99
100 - Verify expected dependent version has been released.
101 - Modify pom.xml, update dep version(s) from x.z.y-SNAPSHOT to x.y.z
102 - Commit and submit.
103