Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = Making a Gerrit Release |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 2 | |
| 3 | [NOTE] |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 4 | This document is meant primarily for Gerrit maintainers |
| 5 | who have been given approval and submit status to the Gerrit |
| 6 | projects. Additionally, maintainers should be given owner |
| 7 | status to the Gerrit web site. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 8 | |
| 9 | To make a Gerrit release involves a great deal of complex |
| 10 | tasks and it is easy to miss a step so this document should |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 11 | hopefully serve as both a how to for those new to the process |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 12 | and as a checklist for those already familiar with these |
| 13 | tasks. |
| 14 | |
| 15 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 16 | == Gerrit Release Type |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 17 | |
| 18 | Here are some guidelines on release approaches depending on the |
Patrick Hiesel | 9d165c5 | 2017-04-13 10:08:53 +0200 | [diff] [blame] | 19 | type of release you want to make (`stable-fix`, `stable`, `rc0`, |
| 20 | `rc1`...). |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 21 | |
Edwin Kempin | 60ab853 | 2013-03-27 14:33:46 +0100 | [diff] [blame] | 22 | [[stable]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 23 | === Stable |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 24 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 25 | A `stable` release is generally built from the `master` branch and may |
| 26 | need to undergo some stabilization before releasing the final release. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 27 | |
| 28 | * Propose the release with any plans/objectives to the mailing list |
| 29 | |
Patrick Hiesel | 9d165c5 | 2017-04-13 10:08:53 +0200 | [diff] [blame] | 30 | * Create a Gerrit `rc0` |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 31 | |
Patrick Hiesel | 9d165c5 | 2017-04-13 10:08:53 +0200 | [diff] [blame] | 32 | * If needed create a Gerrit `rc1` |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 33 | |
| 34 | [NOTE] |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 35 | You may let in a few features to this release |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 36 | |
Patrick Hiesel | 9d165c5 | 2017-04-13 10:08:53 +0200 | [diff] [blame] | 37 | * If needed create a Gerrit `rc2` |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 38 | |
| 39 | [NOTE] |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 40 | There should be no new features in this release, only bug fixes |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 41 | |
Patrick Hiesel | 9d165c5 | 2017-04-13 10:08:53 +0200 | [diff] [blame] | 42 | * Finally create the `stable` release (no `rc`) |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 43 | |
| 44 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 45 | === Stable-Fix |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 46 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 47 | `stable-fix` releases should likely only contain bug fixes and doc |
| 48 | updates. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 49 | |
Edwin Kempin | a0272a5 | 2012-12-28 10:25:57 +0100 | [diff] [blame] | 50 | * Propose the release with any plans/objectives to the mailing list |
| 51 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 52 | * This type of release does not need any RCs, release when the |
| 53 | objectives are met |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 54 | |
| 55 | |
Edwin Kempin | 60ab853 | 2013-03-27 14:33:46 +0100 | [diff] [blame] | 56 | [[security]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 57 | === Security-Fix |
Edwin Kempin | d71591e | 2012-12-28 10:50:38 +0100 | [diff] [blame] | 58 | |
| 59 | `security-fix` releases should only contain bug fixes for security |
| 60 | issues. |
| 61 | |
| 62 | For security issues it is important that they are only announced |
| 63 | *after* fixed versions for all relevant releases have been published. |
David Pursehouse | 452ea4c | 2013-01-07 17:30:47 +0900 | [diff] [blame] | 64 | Because of this, `security-fix` releases can't be prepared in the public |
Edwin Kempin | d71591e | 2012-12-28 10:50:38 +0100 | [diff] [blame] | 65 | `gerrit` project. |
| 66 | |
| 67 | `security-fix` releases are prepared in the `gerrit-security-fixes` |
| 68 | project which is only readable by the Gerrit Maintainers. Only after |
David Pursehouse | 452ea4c | 2013-01-07 17:30:47 +0900 | [diff] [blame] | 69 | a `security-fix` release has been published will the commits/tags made in |
| 70 | the `gerrit-security-fixes` project be taken over into the public |
Edwin Kempin | d71591e | 2012-12-28 10:50:38 +0100 | [diff] [blame] | 71 | `gerrit` project. |
| 72 | |
| 73 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 74 | == Create the Actual Release |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 75 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 76 | To create a Gerrit release the following steps have to be done: |
Sasa Zivkov | 619f9ed | 2012-05-25 14:49:29 +0200 | [diff] [blame] | 77 | |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 78 | . link:#build-gerrit[Build the Gerrit Release] |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 79 | . link:#publish-gerrit[Publish the Gerrit Release] |
David Pursehouse | dd066e4 | 2015-04-17 17:53:57 +0900 | [diff] [blame] | 80 | .. link:#publish-to-maven-central[Publish the Gerrit artifacts to Maven Central] |
| 81 | .. link:#publish-to-google-storage[Publish the Gerrit WAR to Google Storage] |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 82 | .. link:#push-stable[Push the Stable Branch] |
| 83 | .. link:#push-tag[Push the Release Tag] |
| 84 | .. link:#upload-documentation[Upload the Documentation] |
David Pursehouse | d228d6d | 2016-10-19 19:25:35 +0900 | [diff] [blame] | 85 | .. link:#finalize-release-notes[Finalize Release Notes] |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 86 | .. link:#update-issues[Update the Issues] |
| 87 | .. link:#announce[Announce on Mailing List] |
| 88 | . link:#increase-version[Increase Gerrit Version for Current Development] |
| 89 | . link:#merge-stable[Merge `stable` into `master`] |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 90 | |
| 91 | |
Dave Borowitz | 9b87707 | 2017-10-01 16:17:42 -0400 | [diff] [blame] | 92 | [[update-versions]] |
| 93 | === Update Versions and Create Release Tag |
Edwin Kempin | 6ba2194 | 2014-06-03 09:16:20 +0200 | [diff] [blame] | 94 | |
Patrick Hiesel | 9d165c5 | 2017-04-13 10:08:53 +0200 | [diff] [blame] | 95 | Before doing the release build, the `GERRIT_VERSION` in the `version.bzl` |
David Pursehouse | 5b42593 | 2015-01-22 16:46:00 +0900 | [diff] [blame] | 96 | file must be updated, e.g. change it from `2.5-SNAPSHOT` to `2.5`. |
Edwin Kempin | 6ba2194 | 2014-06-03 09:16:20 +0200 | [diff] [blame] | 97 | |
Dave Borowitz | 9b87707 | 2017-10-01 16:17:42 -0400 | [diff] [blame] | 98 | In addition the version must be updated in a number of pom.xml files. |
| 99 | |
| 100 | To do this run the `./tools/version.py` script and provide the new |
| 101 | version as parameter, e.g.: |
| 102 | |
| 103 | ---- |
| 104 | ./tools/version.py 2.5 |
| 105 | ---- |
| 106 | |
| 107 | Commit the changes and create a signed release tag on the new commit: |
Edwin Kempin | 6ba2194 | 2014-06-03 09:16:20 +0200 | [diff] [blame] | 108 | |
| 109 | ---- |
David Pursehouse | 02224a1 | 2017-07-03 14:22:34 +0900 | [diff] [blame] | 110 | git tag -s -m "v2.5" v2.5 |
Edwin Kempin | 6ba2194 | 2014-06-03 09:16:20 +0200 | [diff] [blame] | 111 | ---- |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 112 | |
David Pursehouse | a1ab3e7 | 2015-01-30 14:57:11 +0900 | [diff] [blame] | 113 | Tag the plugins: |
| 114 | |
| 115 | ---- |
David Pursehouse | 02224a1 | 2017-07-03 14:22:34 +0900 | [diff] [blame] | 116 | git submodule foreach git tag -s -m "v2.5" v2.5 |
David Pursehouse | a1ab3e7 | 2015-01-30 14:57:11 +0900 | [diff] [blame] | 117 | ---- |
| 118 | |
Shawn Pearce | bf8ebbe | 2013-05-06 14:23:26 -0700 | [diff] [blame] | 119 | [[build-gerrit]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 120 | === Build Gerrit |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 121 | |
Yuxuan 'fishy' Wang | 6714b0d | 2016-05-03 12:58:04 -0700 | [diff] [blame] | 122 | * Build the Gerrit WAR, API JARs and documentation |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 123 | + |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 124 | ---- |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 125 | bazel build release Documentation:searchfree |
| 126 | ./tools/maven/api.sh install |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 127 | ---- |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 128 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 129 | * Sanity check WAR |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 130 | * Test the new Gerrit version |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 131 | |
David Pursehouse | 7eb16eb | 2016-03-11 12:01:56 +0900 | [diff] [blame] | 132 | * Verify plugin versions |
| 133 | + |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 134 | Verify the versions: |
David Pursehouse | 7eb16eb | 2016-03-11 12:01:56 +0900 | [diff] [blame] | 135 | + |
| 136 | ---- |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 137 | java -jar bazel-bin/release.war init --list-plugins |
David Pursehouse | 7eb16eb | 2016-03-11 12:01:56 +0900 | [diff] [blame] | 138 | ---- |
| 139 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 140 | [[publish-gerrit]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 141 | === Publish the Gerrit Release |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 142 | |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 143 | [[publish-to-maven-central]] |
| 144 | ==== Publish the Gerrit artifacts to Maven Central |
| 145 | |
| 146 | * Make sure you have done the |
| 147 | link:dev-release-deploy-config.html#deploy-configuration-setting-maven-central[ |
| 148 | configuration] for deploying to Maven Central |
| 149 | |
Dave Borowitz | 9b87707 | 2017-10-01 16:17:42 -0400 | [diff] [blame] | 150 | * Make sure that the version is updated in the `version.bzl` file and in |
| 151 | the `pom.xml` files as described in the link:#update-versions[Update |
| 152 | Versions and Create Release Tag] section. |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 153 | |
Edwin Kempin | e5b4943 | 2014-06-03 09:25:39 +0200 | [diff] [blame] | 154 | * Push the WAR to Maven Central: |
| 155 | + |
| 156 | ---- |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 157 | ./tools/maven/api.sh war_deploy |
Edwin Kempin | e5b4943 | 2014-06-03 09:25:39 +0200 | [diff] [blame] | 158 | ---- |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 159 | |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 160 | * Push the plugin artifacts to Maven Central: |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 161 | + |
| 162 | ---- |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 163 | ./tools/maven/api.sh deploy |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 164 | ---- |
| 165 | |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 166 | * To where the artifacts are uploaded depends on the `GERRIT_VERSION` in |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 167 | the `version.bzl` file: |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 168 | |
| 169 | ** SNAPSHOT versions are directly uploaded into the Sonatype snapshots |
| 170 | repository and no further action is needed: |
| 171 | + |
| 172 | https://oss.sonatype.org/content/repositories/snapshots/com/google/gerrit/ |
| 173 | |
| 174 | ** Release versions are uploaded into a staging repository in the |
| 175 | link:https://oss.sonatype.org/[Sonatype Nexus Server]. |
| 176 | |
| 177 | * Verify the staging repository |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 178 | |
| 179 | ** Go to the link:https://oss.sonatype.org/[Sonatype Nexus Server] and |
| 180 | sign in with your Sonatype credentials. |
| 181 | |
Edwin Kempin | 58bc313 | 2014-06-05 14:56:58 +0200 | [diff] [blame] | 182 | ** Click on 'Build Promotion' in the left navigation bar under |
| 183 | 'Staging Repositories' and find the `comgooglegerrit-XXXX` staging |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 184 | repository. |
| 185 | |
| 186 | ** Verify its content |
| 187 | + |
| 188 | While the staging repository is open you can upload further content and |
| 189 | also replace uploaded artifacts. If something is wrong with the staging |
| 190 | repository you can drop it by selecting it and clicking on `Drop`. |
| 191 | |
| 192 | ** Run Sonatype validations on the staging repository |
| 193 | + |
| 194 | Select the staging repository and click on `Close`. This runs the |
| 195 | Sonatype validations on the staging repository. The repository will |
| 196 | only be closed if everything is OK. A closed repository cannot be |
| 197 | modified anymore, but you may still drop it if you find any issues. |
| 198 | |
| 199 | ** Test closed staging repository |
| 200 | + |
| 201 | Once a repository is closed you can find the URL to it in the `Summary` |
| 202 | section, e.g. https://oss.sonatype.org/content/repositories/comgooglegerrit-1029 |
| 203 | + |
| 204 | Use this URL for further testing of the artifacts in this repository, |
| 205 | e.g. to try building a plugin against the plugin API in this repository |
| 206 | update the version in the `pom.xml` and configure the repository: |
| 207 | + |
| 208 | ---- |
| 209 | <repositories> |
| 210 | <repository> |
| 211 | <id>gerrit-staging-repository</id> |
| 212 | <url>https://oss.sonatype.org/content/repositories/comgooglegerrit-1029</url> |
| 213 | </repository> |
| 214 | </repositories> |
| 215 | ---- |
| 216 | |
| 217 | * Release the staging repository |
| 218 | + |
| 219 | How to release a staging repository is described in the |
| 220 | link:https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-8.a.2.ReleasingaStagingRepository[ |
| 221 | Sonatype OSS Maven Repository Usage Guide]. |
| 222 | + |
| 223 | [WARNING] |
| 224 | Releasing artifacts to Maven Central cannot be undone! |
| 225 | |
| 226 | ** Find the closed staging repository in the |
| 227 | link:https://oss.sonatype.org/[Sonatype Nexus Server], select it and |
| 228 | click on `Release`. |
| 229 | |
Edwin Kempin | 8e63cf4 | 2014-06-04 14:24:20 +0200 | [diff] [blame] | 230 | ** The released artifacts are available in |
| 231 | https://oss.sonatype.org/content/repositories/releases/com/google/gerrit/ |
| 232 | |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 233 | ** It may take up to 2 hours until the artifacts appear on Maven |
| 234 | Central: |
| 235 | + |
Edwin Kempin | 8e63cf4 | 2014-06-04 14:24:20 +0200 | [diff] [blame] | 236 | http://central.maven.org/maven2/com/google/gerrit/ |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 237 | |
Edwin Kempin | 58bc313 | 2014-06-05 14:56:58 +0200 | [diff] [blame] | 238 | * [optional]: View download statistics |
| 239 | |
| 240 | ** Sign in to the |
| 241 | link:https://oss.sonatype.org/[Sonatype Nexus Server]. |
| 242 | |
| 243 | ** Click on 'Views/Repositories' in the left navigation bar under |
| 244 | 'Central Statistics'. |
| 245 | |
| 246 | ** Select `com.google.gerrit` as `Project`. |
| 247 | |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 248 | |
David Pursehouse | dd066e4 | 2015-04-17 17:53:57 +0900 | [diff] [blame] | 249 | [[publish-to-google-storage]] |
| 250 | ==== Publish the Gerrit WAR to the Google Cloud Storage |
| 251 | |
David Pursehouse | af652ab | 2016-08-29 16:37:22 +0900 | [diff] [blame] | 252 | * go to the link:https://console.cloud.google.com/storage/browser/gerrit-releases/?project=api-project-164060093628[ |
| 253 | gerrit-releases bucket in the Google cloud storage console] |
David Pursehouse | dd066e4 | 2015-04-17 17:53:57 +0900 | [diff] [blame] | 254 | * make sure you are signed in with your Gmail account |
| 255 | * manually upload the Gerrit WAR file by using the `Upload` button |
| 256 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 257 | [[push-stable]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 258 | ==== Push the Stable Branch |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 259 | |
David Pursehouse | 0c10402 | 2014-06-02 09:57:14 +0900 | [diff] [blame] | 260 | * Create the stable branch `stable-2.5` in the `gerrit` project via the |
| 261 | link:https://gerrit-review.googlesource.com/#/admin/projects/gerrit,branches[ |
David Pursehouse | a1d633b | 2014-05-02 17:21:02 +0900 | [diff] [blame] | 262 | Gerrit Web UI] or by push. |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 263 | |
| 264 | * Push the commits done on `stable-2.5` to `refs/for/stable-2.5` and |
| 265 | get them merged |
| 266 | |
| 267 | |
| 268 | [[push-tag]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 269 | ==== Push the Release Tag |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 270 | |
David Pursehouse | a1ab3e7 | 2015-01-30 14:57:11 +0900 | [diff] [blame] | 271 | Push the new Release Tag: |
| 272 | |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 273 | ---- |
Saša Živkov | ffd288e | 2015-01-28 12:22:37 +0100 | [diff] [blame] | 274 | git push gerrit-review tag v2.5 |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 275 | ---- |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 276 | |
David Pursehouse | a1ab3e7 | 2015-01-30 14:57:11 +0900 | [diff] [blame] | 277 | Push the new Release Tag on the plugins: |
| 278 | |
| 279 | ---- |
| 280 | git submodule foreach git push gerrit-review tag v2.5 |
| 281 | ---- |
| 282 | |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 283 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 284 | [[upload-documentation]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 285 | ==== Upload the Documentation |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 286 | |
Yuxuan 'fishy' Wang | 6714b0d | 2016-05-03 12:58:04 -0700 | [diff] [blame] | 287 | * Extract the documentation files from the zip file generated from |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 288 | `bazel build searchfree`: `bazel-bin/Documentation/searchfree.zip`. |
David Pursehouse | db62816 | 2014-12-09 19:33:01 +0900 | [diff] [blame] | 289 | |
David Pursehouse | 62106ac | 2016-03-11 14:19:48 +0900 | [diff] [blame] | 290 | * Upload the files manually via web browser to the appropriate folder |
| 291 | in the |
David Pursehouse | af652ab | 2016-08-29 16:37:22 +0900 | [diff] [blame] | 292 | link:https://console.cloud.google.com/storage/browser/gerrit-documentation/?project=api-project-164060093628[ |
David Pursehouse | a8dca2f | 2015-04-17 13:59:29 +0900 | [diff] [blame] | 293 | gerrit-documentation] storage bucket. |
Yuxuan 'fishy' Wang | f780397 | 2014-09-03 12:23:21 -0700 | [diff] [blame] | 294 | |
David Pursehouse | d228d6d | 2016-10-19 19:25:35 +0900 | [diff] [blame] | 295 | [[finalize-release-notes]] |
| 296 | === Finalize the Release Notes |
| 297 | |
| 298 | Upload a change on the homepage project to: |
| 299 | |
| 300 | * Remove 'In Development' caveat from the relevant section. |
| 301 | |
| 302 | * Add links to the released documentation and the .war file, and make the |
| 303 | latest version bold. |
| 304 | |
David Pursehouse | db62816 | 2014-12-09 19:33:01 +0900 | [diff] [blame] | 305 | [[update-links]] |
David Pursehouse | 08726a8 | 2015-07-14 11:46:20 +0900 | [diff] [blame] | 306 | ==== Update homepage links |
Yuxuan 'fishy' Wang | f780397 | 2014-09-03 12:23:21 -0700 | [diff] [blame] | 307 | |
David Pursehouse | 08726a8 | 2015-07-14 11:46:20 +0900 | [diff] [blame] | 308 | Upload a change on the link:https://gerrit-review.googlesource.com/#/admin/projects/homepage[ |
| 309 | homepage project] to change the version numbers to the new version. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 310 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 311 | [[update-issues]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 312 | ==== Update the Issues |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 313 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 314 | Update the issues by hand. There is no script for this. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 315 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 316 | Our current process is an issue should be updated to say `Status = |
| 317 | Submitted, FixedIn-2.5` once the change is submitted, but before the |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 318 | release. |
| 319 | |
| 320 | After the release is actually made, you can search in Google Code for |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 321 | `Status=Submitted FixedIn=2.5` and then batch update these changes |
| 322 | to say `Status=Released`. Make sure the pulldown says `All Issues` |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 323 | because `Status=Submitted` is considered a closed issue. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 324 | |
| 325 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 326 | [[announce]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 327 | ==== Announce on Mailing List |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 328 | |
David Pursehouse | d15e436 | 2017-07-19 11:06:52 +0900 | [diff] [blame] | 329 | Send an email to the mailing list to announce the release. The content of the |
| 330 | announcement email is generated with the `release-announcement.py` which |
| 331 | automatically includes all the necessary links, hash values, and wraps the |
| 332 | text in a PGP signature. |
David Pursehouse | b3f1deb | 2017-06-30 13:37:11 +0900 | [diff] [blame] | 333 | |
David Pursehouse | d15e436 | 2017-07-19 11:06:52 +0900 | [diff] [blame] | 334 | For details refer to the documentation in the script's header, and/or the |
| 335 | help text: |
| 336 | |
| 337 | ---- |
| 338 | ./tools/release-announcement.py --help |
| 339 | ---- |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 340 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 341 | [[increase-version]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 342 | === Increase Gerrit Version for Current Development |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 343 | |
David Pursehouse | f7c9f2c | 2014-12-09 19:36:04 +0900 | [diff] [blame] | 344 | All new development that is done in the `master` branch will be included in the |
| 345 | next Gerrit release. The Gerrit version should be set to the snapshot version |
| 346 | for the next release. |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 347 | |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 348 | Use the `version` tool to set the version in the `version.bzl` file: |
David Pursehouse | f7c9f2c | 2014-12-09 19:36:04 +0900 | [diff] [blame] | 349 | |
| 350 | ---- |
Patrick Hiesel | 9d165c5 | 2017-04-13 10:08:53 +0200 | [diff] [blame] | 351 | ./tools/version.py 2.6-SNAPSHOT |
David Pursehouse | f7c9f2c | 2014-12-09 19:36:04 +0900 | [diff] [blame] | 352 | ---- |
| 353 | |
| 354 | Verify that the changes made by the tool are sane, then commit them, push |
| 355 | the change for review on the master branch, and get it merged. |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 356 | |
| 357 | [[merge-stable]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 358 | === Merge `stable` into `master` |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 359 | |
| 360 | After every release, stable should be merged to master to ensure that |
| 361 | none of the changes/fixes ever get lost. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 362 | |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 363 | ---- |
| 364 | git config merge.summary true |
| 365 | git checkout master |
| 366 | git reset --hard origin/master |
| 367 | git branch -f stable origin/stable |
| 368 | git merge stable |
| 369 | ---- |
Martin Fick | ec31ff4 | 2012-06-23 11:35:39 -0600 | [diff] [blame] | 370 | |
David Ostrovsky | 01a33d8 | 2017-08-31 19:49:12 +0200 | [diff] [blame] | 371 | [[update-api-version-in-bazlets-repository]] |
| 372 | |
| 373 | Bazlets is used by gerrit plugins to simplify build process. To allow the |
| 374 | new released version to be used by gerrit plugins, |
| 375 | link:https://gerrit.googlesource.com/bazlets/+/master/gerrit_api.bzl#8[gerrit_api.bzl] |
| 376 | must reference the new version. Upload a change to bazlets repository with |
| 377 | api version upgrade. |
Martin Fick | ec31ff4 | 2012-06-23 11:35:39 -0600 | [diff] [blame] | 378 | |
| 379 | GERRIT |
| 380 | ------ |
| 381 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 382 | |
| 383 | SEARCHBOX |
| 384 | --------- |