You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2024/02/16 16:40:58 UTC
(plc4x) branch rel/0.12 updated: build: Fixed some issues in the release scripts (which I thought I had already fixed)
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch rel/0.12
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/rel/0.12 by this push:
new 81a029c7d3 build: Fixed some issues in the release scripts (which I thought I had already fixed)
81a029c7d3 is described below
commit 81a029c7d34c798650fb2190944597590c69ede6
Author: Christofer Dutz <cd...@apache.org>
AuthorDate: Fri Feb 16 17:40:49 2024 +0100
build: Fixed some issues in the release scripts (which I thought I had already fixed)
---
tools/release-3-perform-release.sh | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/tools/release-3-perform-release.sh b/tools/release-3-perform-release.sh
index acc3f26342..590e2b42dd 100755
--- a/tools/release-3-perform-release.sh
+++ b/tools/release-3-perform-release.sh
@@ -31,14 +31,14 @@ fi
# 2. Sign all artifacts
echo "Signing artifacts:"
-find ./out/.local-artifacts-dir -print | grep -E '^((.*\.pom)|(.*\.jar)|(.*\.kar)|(.*\.nar)|(.*-features\.xml)|(.*-cycloneds\.json)|(.*-cycloneds\.xml)|(.*-site\.xml)|(.*\.zip))$' | while read -r line ; do
+find ../out/.local-artifacts-dir -print | grep -E '^((.*\.pom)|(.*\.jar)|(.*\.kar)|(.*\.nar)|(.*-features\.xml)|(.*-cyclonedx\.json)|(.*-cyclonedx\.xml)|(.*-site\.xml)|(.*\.zip))$' | while read -r line ; do
echo "Processing $line"
gpg -ab "$line"
done
# 3. Deploy the artifacts to Nexus
echo "Deploying artifacts:"
-../mvnw -f jenkins.pom -X -P deploy-releases wagon:upload
+../mvnw -f ../jenkins.pom -X -P deploy-releases wagon:upload
if [ $? -ne 0 ]; then
echo "Got non-0 exit code from maven deployment, aborting."
exit 1
@@ -46,17 +46,19 @@ fi
# 4. Prepare a directory for the release candidate
echo "Staging release candidate:"
+read -r -p 'Release-Candidate number: ' rcNumber
+RELEASE_CANDIDATE="rc$rcNumber"
RELEASE_VERSION=$(find ../out/.local-artifacts-dir/org/apache/plc4x/plc4x-parent/ -maxdepth 1 -type d | grep -vE 'plc4x-parent/$' | xargs -n 1 basename)
-mkdir -p "../out/stage/${RELEASE_VERSION}/rc1"
-cp ../README.md "../out/stage/${RELEASE_VERSION}/rc1/README"
-cp ../RELEASE_NOTES "../out/stage/${RELEASE_VERSION}/rc1"
-cp "../out/.local-artifacts-dir/org/apache/plc4x/plc4x-parent/${RELEASE_VERSION}/plc4x-parent-${RELEASE_VERSION}-source-release.zip" "../out/stage/${RELEASE_VERSION}/rc1/apache-plc4x-${RELEASE_VERSION}-source-release.zip"
-cp "../out/.local-artifacts-dir/org/apache/plc4x/plc4x-parent/${RELEASE_VERSION}/plc4x-parent-${RELEASE_VERSION}-source-release.zip.asc" "../out/stage/${RELEASE_VERSION}/rc1/apache-plc4x-${RELEASE_VERSION}-source-release.zip.asc"
-cp "../out/.local-artifacts-dir/org/apache/plc4x/plc4x-parent/${RELEASE_VERSION}/plc4x-parent-${RELEASE_VERSION}-source-release.zip.sha512" "../out/stage/${RELEASE_VERSION}/rc1/apache-plc4x-${RELEASE_VERSION}-source-release.zip.sha512"
+mkdir -p "../out/stage/${RELEASE_VERSION}/${RELEASE_CANDIDATE}"
+cp ../README.md "../out/stage/${RELEASE_VERSION}/${RELEASE_CANDIDATE}/README"
+cp ../RELEASE_NOTES "../out/stage/${RELEASE_VERSION}/${RELEASE_CANDIDATE}"
+cp "../out/.local-artifacts-dir/org/apache/plc4x/plc4x-parent/${RELEASE_VERSION}/plc4x-parent-${RELEASE_VERSION}-source-release.zip" "../out/stage/${RELEASE_VERSION}/${RELEASE_CANDIDATE}/apache-plc4x-${RELEASE_VERSION}-source-release.zip"
+cp "../out/.local-artifacts-dir/org/apache/plc4x/plc4x-parent/${RELEASE_VERSION}/plc4x-parent-${RELEASE_VERSION}-source-release.zip.asc" "../out/stage/${RELEASE_VERSION}/${RELEASE_CANDIDATE}/apache-plc4x-${RELEASE_VERSION}-source-release.zip.asc"
+cp "../out/.local-artifacts-dir/org/apache/plc4x/plc4x-parent/${RELEASE_VERSION}/plc4x-parent-${RELEASE_VERSION}-source-release.zip.sha512" "../out/stage/${RELEASE_VERSION}/${RELEASE_CANDIDATE}/apache-plc4x-${RELEASE_VERSION}-source-release.zip.sha512"
# 5. Upload the release candidate artifacts to SVN
cd "../out/stage/${RELEASE_VERSION}" || exit
-svn import rc1 "https://dist.apache.org/repos/dist/dev/plc4x/${RELEASE_VERSION}/rc1" -m"Staging of rc1 of PLC4X ${RELEASE_VERSION}"
+svn import "${RELEASE_CANDIDATE}" "https://dist.apache.org/repos/dist/dev/plc4x/${RELEASE_VERSION}/${RELEASE_CANDIDATE}" -m"Staging of ${RELEASE_CANDIDATE} of PLC4X ${RELEASE_VERSION}"
# 6. Close the Nexus staging repository