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 08:33:47 UTC
(plc4x) branch rel/0.12 updated: chore: Tried to make the build not sign the artifacts.
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 60e0f3446f chore: Tried to make the build not sign the artifacts.
60e0f3446f is described below
commit 60e0f3446f9bb223d6bd1c8c0cda73bb13d24334
Author: Christofer Dutz <cd...@apache.org>
AuthorDate: Fri Feb 16 09:33:39 2024 +0100
chore: Tried to make the build not sign the artifacts.
---
pom.xml | 3 ++-
tools/release-3-perform-release.sh | 12 ++++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 58bf32920a..e4403656bf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -162,7 +162,8 @@
<skip-code-generation>false</skip-code-generation>
<skip-code-generation-tests>true</skip-code-generation-tests>
- <skip-pgp-signing>false</skip-pgp-signing>
+ <!-- Set this to false, when doing a normal release. -->
+ <skip-pgp-signing>true</skip-pgp-signing>
<enable-all-tests>false</enable-all-tests>
<excluded-test-groups>require-all-tests</excluded-test-groups>
<reflow.skin.version>2.3.3</reflow.skin.version>
diff --git a/tools/release-3-perform-release.sh b/tools/release-3-perform-release.sh
index 3149a50b9a..acc3f26342 100755
--- a/tools/release-3-perform-release.sh
+++ b/tools/release-3-perform-release.sh
@@ -22,18 +22,30 @@
# 0. Check if the release properties file exists.
# 1. Do a simple release-perform command skip signing of artifacts and deploy to local directory (inside the Docker container)
+echo "Performing Release:"
docker compose run --rm releaser bash /ws/mvnw -e -Dmaven.repo.local=/ws/out/.repository -DaltDeploymentRepository=snapshot-repo::default::file:/ws/out/.local-artifacts-dir release:perform
+if [ $? -ne 0 ]; then
+ echo "Got non-0 exit code from docker compose, aborting."
+ exit 1
+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
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
+if [ $? -ne 0 ]; then
+ echo "Got non-0 exit code from maven deployment, aborting."
+ exit 1
+fi
# 4. Prepare a directory for the release candidate
+echo "Staging release candidate:"
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"