You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2021/11/12 12:14:35 UTC
[camel-quarkus] branch main updated: Improve Release guide
This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new 17cda62 Improve Release guide
17cda62 is described below
commit 17cda627419376b0c449f7e1104a6406193e294e
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Fri Nov 12 11:06:20 2021 +0100
Improve Release guide
---
.../ROOT/pages/contributor-guide/release-guide.adoc | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/docs/modules/ROOT/pages/contributor-guide/release-guide.adoc b/docs/modules/ROOT/pages/contributor-guide/release-guide.adoc
index 6832542..ee61060 100644
--- a/docs/modules/ROOT/pages/contributor-guide/release-guide.adoc
+++ b/docs/modules/ROOT/pages/contributor-guide/release-guide.adoc
@@ -40,6 +40,7 @@ $ mvn clean release:clean release:prepare -DreleaseVersion=$VERSION -Ddevelopmen
----
In case `release:prepare` is successful but an issue occurs during `release:perform`, you can resume from the failing artifact to save some time:
+
* First find out from the console output, in which module the `release:perform` task failed.
Say that there was an upload timeout in `camel-quarkus-openapi-java` module.
* Then locate the directory `mvn release:perform` used for checking out the tag and running the `deploy` goal.
@@ -125,18 +126,20 @@ Typically, when releasing e.g. 1.4.0, you may need to delete e.g. 1.3.0:
[source,shell]
----
-$ cd .. && ls
-$ rm -fr 1.3.0
+$ cd ..
+$ ls
+1.3.0 1.4.0
+$ svn remove 1.3.0
----
Review the changes:
[source,shell]
----
+$ cd ..
$ svn diff
----
Commit the changes:
[source,shell]
----
-$ cd camel-releases-dist
$ svn add --force .
$ svn commit -m "Apache Camel Quarkus $VERSION released artifacts"
----
@@ -155,7 +158,7 @@ You may find the `await-release` mojo of `cq-maven-plugin` handy if you need to
[source,shell]
----
$ cd camel-quarkus
-$ mvn cq:await-release -Dcq.version=$VERSION
+$ mvn cq:await-release -Dcq.version=$(git describe --tags `git rev-list --tags --max-count=1`)
----
+
The mojo first lists the artifacts having `groupId` `org.apache.camel.quarkus` and the given `$VERSION`
@@ -272,6 +275,10 @@ $ git commit -m "Tag $NEW_CQ_VERSION"
$ git tag $NEW_CQ_VERSION
$ git push upstream main
$ git push upstream $NEW_CQ_VERSION
+# Create a maintenance branch for the release unless this is a micro release
+$ export BRANCH=$(echo $NEW_CQ_VERSION | sed 's|.[0-9][0-9]*$|.x|')
+$ git checkout -b $BRANCH $NEW_CQ_VERSION
+$ git push upstream $BRANCH
----
+
* Prepare the `camel-quarkus-main` branch for the next development iteration: