You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2024/03/08 18:55:13 UTC
(cassandra-builds) branch trunk updated: Ensure ~/.m2/repository exists
This is an automated email from the ASF dual-hosted git repository.
brandonwilliams pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-builds.git
The following commit(s) were added to refs/heads/trunk by this push:
new 363cdeb Ensure ~/.m2/repository exists
363cdeb is described below
commit 363cdeb99ca978fe08746732b99dee89191b074b
Author: Brandon Williams <dr...@gmail.com>
AuthorDate: Fri Mar 8 09:35:51 2024 -0600
Ensure ~/.m2/repository exists
Patch by brandonwilliams; reviwed by mck for INFRA-25584
---
build-scripts/cassandra-deb-packaging.sh | 1 +
build-scripts/cassandra-rpm-packaging.sh | 1 +
2 files changed, 2 insertions(+)
diff --git a/build-scripts/cassandra-deb-packaging.sh b/build-scripts/cassandra-deb-packaging.sh
index b73b10e..83f7656 100755
--- a/build-scripts/cassandra-deb-packaging.sh
+++ b/build-scripts/cassandra-deb-packaging.sh
@@ -39,6 +39,7 @@ until docker build --build-arg CASSANDRA_GIT_URL=$CASSANDRA_GIT_URL --build-arg
# Run build script through docker (specify branch, tag, or sha)
+mkdir -p ~/.m2/repository
docker run --rm -v "${deb_dir}":/dist -v ~/.m2/repository/:/home/build/.m2/repository/ cassandra-artifacts-bullseye:${sha} /home/build/build-debs.sh ${sha} ${java_version}
popd
diff --git a/build-scripts/cassandra-rpm-packaging.sh b/build-scripts/cassandra-rpm-packaging.sh
index 3ed2255..c8ba817 100755
--- a/build-scripts/cassandra-rpm-packaging.sh
+++ b/build-scripts/cassandra-rpm-packaging.sh
@@ -49,6 +49,7 @@ pushd $cassandra_builds_dir
until docker build --build-arg CASSANDRA_GIT_URL=$CASSANDRA_GIT_URL --build-arg UID_ARG=`id -u` --build-arg GID_ARG=`id -g` -t cassandra-artifacts-${dist_name}:${sha} -f docker/${dist_name}-image.docker docker/ ; do echo "docker build failed… trying again in 10s… " ; sleep 10 ; done
# Run build script through docker (specify branch, tag, or sha)
+mkdir -p ~/.m2/repository
docker run --rm -v "${rpm_dir}":/dist -v ~/.m2/repository/:/home/build/.m2/repository/ cassandra-artifacts-${dist_name}:${sha} /home/build/build-rpms.sh ${sha} ${java_version} ${rpm_dist}
popd
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org