@@ -227,22 +227,23 @@ That performs the same steps, however it pushes changes to the mock Nexus, Git,
227227If any of the steps fail, fix the problem, and
228228start again from the top.
229229
230- ### To prepare a release candidate directly in your environment:
230+ ### Prepare a release candidate directly in your environment
231231
232- Pick a release candidate index and ensure it does not interfere with previous candidates for the version.
232+ Pick a release candidate index (starting from 0) and ensure it does
233+ not interfere with previous candidates for the version.
233234
234235{% highlight bash %}
235236# Make sure that there are no junk files in the sandbox
236237git clean -xn
237238
238239# Dry run the release candidate (push to asf-like-environment)
239- ./gradlew prepareVote -Prc=1
240+ ./gradlew prepareVote -Prc=0
240241
241242# Push release candidate to ASF servers
242- ./gradlew prepareVote -Prc=1 -Pasf
243+ ./gradlew prepareVote -Prc=0 -Pasf
243244{% endhighlight %}
244245
245- ### To prepare a release candidate in Docker:
246+ ### Prepare a release candidate in Docker
246247
247248* You will need to have [ Docker] ( https://docs.docker.com/install/ ) and [ Docker Compose] ( https://docs.docker.com/compose/install/ ) installed.
248249
@@ -447,14 +448,14 @@ tag triggers Docker Hub to start building the docker images immediately and the
447448If the artifacts are not yet available, the build on Docker Hub will fail. It's best to continue with the following steps
448449after you have confirmed that the nexus artifacts were promoted properly.
449450
450- ### Publishing directly in your environment:
451+ ### Publishing directly in your environment
451452
452453{% highlight bash %}
453454# Dry run publishing the release (push to asf-like-environment)
454- ./gradlew publishDist -Prc=1
455+ ./gradlew publishDist -Prc=0
455456
456457# Publish the release to ASF servers
457- ./gradlew publishDist -Prc=1 -Pasf
458+ ./gradlew publishDist -Prc=0 -Pasf
458459{% endhighlight %}
459460
460461If there are more than 2 releases in SVN (see https://dist.apache.org/repos/dist/release/calcite ),
@@ -467,17 +468,20 @@ svn rm https://dist.apache.org/repos/dist/release/calcite/apache-calcite-avatica
467468The old releases will remain available in the
468469[ release archive] ( http://archive.apache.org/dist/calcite/ ) .
469470
470- ### Publishing a release using docker:
471+ ### Publishing a release using docker
472+
471473This assumes that a rc release was tagged and pushed to the git repository.
472474
473475{% highlight bash %}
474476docker-compose run promote-release
475477{% endhighlight %}
476478
477479## Add release notes and announce the release
480+
478481Add a release note by copying
479482[ site/_ posts/2016-11-01-release-1.9.0.md] ({{ site.sourceRoot }}/site/_ posts/2016-11-01-release-1.9.0.md),
480- generate the javadoc and copy to ` site/target/avatica/javadocAggregate `
483+ update the version number in ` gradle.properties ` ,
484+ generate the javadoc and copy to ` site/target/avatica/javadocAggregate ` ,
481485[ publish the site] ( #publish-the-web-site ) ,
482486and check that it appears in the contents in [ news] ( http://localhost:4000/news/ ) .
483487
0 commit comments