pan3793 commented on code in PR #7297:
URL: https://github.com/apache/kyuubi/pull/7297#discussion_r2660145603


##########
docs/contributing/code/release.md:
##########
@@ -294,12 +297,29 @@ Remove the deprecated dist repo directories at last.
 
 ```shell
 cd work/svn-dev
-svn delete https://dist.apache.org/repos/dist/dev/kyuubi/{RELEASE_TAG} \
+svn delete https://dist.apache.org/repos/dist/dev/kyuubi/${RELEASE_TAG} \
   --username "${ASF_USERNAME}" \
   --password "${ASF_PASSWORD}" \
   --message "Remove deprecated Apache Kyuubi ${RELEASE_TAG}" 
 ```
 
+## Archive older releases
+
+Remove older releases from 
[downloads.apache.org](https://downloads.apache.org/). All releases are 
automatically archived
+and they are still accessible from 
[archive.apache.org](https://archive.apache.org/dist/).
+
+According to [the ASF release 
policy](https://www.apache.org/legal/release-policy.html#when-to-archive),
+downloads.apache.org should contain the latest release in each branch that is 
currently under development.
+
+```shell
+cd work/svn-dev
+export OLD_RELEASE=
+svn delete https://dist.apache.org/repos/dist/dev/kyuubi/${OLD_RELEASE} \
+  --username "${ASF_USERNAME}" \
+  --password "${ASF_PASSWORD}" \
+  --message "Archive old Apache Kyuubi ${OLD_RELEASE}"

Review Comment:
   ```suggestion
   export OLD_RELEASE_TAG=<release tag, v1.7.0>
   svn delete https://dist.apache.org/repos/dist/dev/kyuubi/${OLD_RELEASE_TAG} \
     --username "${ASF_USERNAME}" \
     --password "${ASF_PASSWORD}" \
     --message "Archive old Apache Kyuubi ${OLD_RELEASE_TAG}"
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to