Author: robbie
Date: Mon Dec 22 15:45:26 2025
New Revision: 81492

Log:
add versions of helper scripts updated for new TLP

Added:
   dev/artemis/artemis-console/prepare-release.sh
   dev/artemis/artemis/prepare-release.sh   (contents, props changed)
   dev/artemis/artemis/promote-release.sh   (contents, props changed)

Added: dev/artemis/artemis-console/prepare-release.sh
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ dev/artemis/artemis-console/prepare-release.sh      Mon Dec 22 15:45:26 
2025        (r81492)
@@ -0,0 +1,86 @@
+#!/bin/sh
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Setting the script to fail if anything goes wrong
+set -e
+
+#This is a script to help with the release process
+
+error () {
+   echo ""
+   echo "$@"
+   echo ""
+   echo "Usage: ./prepare-release.sh repo-url version [target-dir (defaults to 
version, must not exist)]"
+   echo ""
+   echo "example:"
+   echo "./prepare-release.sh 
https://repository.apache.org/content/repositories/orgapacheartemis-<REPO-ID> 
1.5.0"
+   echo ""
+   exit 64
+}
+
+doDownload () {
+
+  theFile="$1"
+  completeURL="$repoURL/$theFile"
+
+  echo $theFile
+
+  echo "Downloading $completeURL"
+  curl $completeURL > $theFile
+
+  echo $completeURL.asc
+
+  echo "Downloading $theFile.asc"
+  curl $completeURL.asc > $theFile.asc
+
+  echo "Verifying signature $theFile.asc"
+  gpg --verify $theFile.asc
+
+  echo "Generating SHA512 checksum file $theFile.sha512"
+  sha512sum $theFile > $theFile.sha512
+}
+
+
+if [ "$#" -lt 2 ]; then
+  error "Cannot match arguments"
+fi
+
+release=$2
+target=${3-$2}
+echo "Target Directory: $target"
+
+if [ -d $target ]; then
+  error "Directory $target already exists, stopping"
+else
+  echo "Directory $target does not exist, creating"
+  mkdir $target
+  cd $target
+fi
+
+repoURL="$1/org/apache/artemis/apache-artemis-console/$2"
+
+doDownload apache-artemis-console-$release-source-release.tar.gz
+doDownload apache-artemis-console-$release-source-release.zip
+doDownload apache-artemis-console-$release-bin.tar.gz
+doDownload apache-artemis-console-$release-bin.zip
+
+echo ""
+echo "--- Download Complete for Release $2 Artifacts are in $target---"
+echo ""
+echo "Validating all SHA512 checksum files"
+sha512sum -c *.sha512

Added: dev/artemis/artemis/prepare-release.sh
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ dev/artemis/artemis/prepare-release.sh      Mon Dec 22 15:45:26 2025        
(r81492)
@@ -0,0 +1,87 @@
+#!/bin/sh
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Setting the script to fail if anything goes wrong
+set -e
+
+#This is a script to help with the release process
+
+
+error () {
+   echo ""
+   echo "$@"
+   echo ""
+   echo "Usage: ./prepare-release.sh repo-url version [target-dir (defaults to 
version, must not exist)]"
+   echo ""
+   echo "example:"
+   echo "./prepare-release.sh 
https://repository.apache.org/content/repositories/orgapacheartemis-<REPO-ID> 
2.50.0"
+   echo ""
+   exit 64
+}
+
+doDownload () {
+
+  theFile="$1"
+  completeURL="$repoURL/$theFile"
+
+  echo $theFile
+
+  echo "Downloading $completeURL"
+  curl $completeURL > $theFile
+
+  echo $completeURL.asc
+
+  echo "Downloading $theFile.asc"
+  curl $completeURL.asc > $theFile.asc
+
+  echo "Verifying signature $theFile.asc"
+  gpg --verify $theFile.asc
+
+  echo "Generating SHA512 checksum file $theFile.sha512"
+  sha512sum $theFile > $theFile.sha512
+}
+
+if [ "$#" -lt 2 ]; then
+  error "Cannot match arguments"
+fi
+
+release=$2
+target=${3-$2}
+echo "Target Directory: $target"
+
+if [ -d $target ]; then
+  error "Directory $target already exists, stopping"
+else
+  echo "Directory $target does not exist, creating"
+  mkdir $target
+  cd $target
+fi
+
+repoURL="$1/org/apache/artemis/apache-artemis/$2"
+
+doDownload apache-artemis-$release-bin.tar.gz
+doDownload apache-artemis-$release-bin.zip
+doDownload apache-artemis-$release-source-release.tar.gz
+doDownload apache-artemis-$release-source-release.zip
+
+echo ""
+echo "--- Download Complete for Release $2 Artifacts are in $target---"
+echo ""
+echo "Validating all SHA512 checksum files"
+sha512sum -c *.sha512
+

Added: dev/artemis/artemis/promote-release.sh
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ dev/artemis/artemis/promote-release.sh      Mon Dec 22 15:45:26 2025        
(r81492)
@@ -0,0 +1,51 @@
+#!/bin/sh
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Setting the script to fail if anything goes wrong
+set -e
+
+#This is a script to help with the release process
+
+
+error () {
+   echo ""
+   echo "$@"
+   echo ""
+   echo "Usage: ./promote-release.sh <version>"
+   echo ""
+   echo "example:"
+   echo "./promote-release.sh 2.50.0"
+   echo ""
+   exit 64
+}
+
+if [ "$#" -lt 1 ]; then
+  error "Cannot match arguments"
+fi
+
+release=$1
+echo "Release : $release"
+
+if [ -d $release ]; then
+  echo "Directory for $release is ok"
+else
+  error "Directory $release does not exist"
+fi
+
+echo svn cp -m \"add files for apache-artemis-$release\" 
https://dist.apache.org/repos/dist/dev/artemis/artemis/$release 
https://dist.apache.org/repos/dist/release/artemis/artemis/$release
+svn cp -m "add files for apache-artemis-$release" 
https://dist.apache.org/repos/dist/dev/artemis/artemis/$release 
https://dist.apache.org/repos/dist/release/artemis/artemis/$release


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

Reply via email to