Skip to content

Commit

Permalink
Add versions logging for build tools
Browse files Browse the repository at this point in the history
patch by Aleksei Zotov; reviewed by Mick Semb Wever for CASSANDRA-16630
  • Loading branch information
azotcsit committed Feb 5, 2022
1 parent c29f680 commit 51a654f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-scripts/cassandra-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ command -v docker >/dev/null 2>&1 || { echo >&2 "docker needs to be installed";
[ -f "build.xml" ] || { echo >&2 "build.xml must exist"; exit 1; }
[ -d "${cassandra_builds_dir}" ] || { echo >&2 "cassandra-builds directory must exist"; exit 1; }

# print debug information on versions
ant -version
pip --version
virtualenv --version
docker --version

# Sphinx is needed for the gen-doc target
virtualenv venv
Expand Down
6 changes: 6 additions & 0 deletions build-scripts/cassandra-dtest-pytest-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ DTEST_REPO=$3
DTEST_BRANCH=$4
EOF

# pre-conditions
command -v docker >/dev/null 2>&1 || { echo >&2 "docker needs to be installed"; exit 1; }

# print debug information on versions
docker --version

set -x # debug, sometimes ${docker_cpus} is not evaluated
# Jenkins agents run multiple executors per machine. `jenkins_executors=1` is used for anything non-jenkins.
jenkins_executors=1
Expand Down
10 changes: 10 additions & 0 deletions build-scripts/cassandra-dtest-pytest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ if [ $? -eq 0 -a -n "$JAVA8_HOME" -a -n "$JAVA11_HOME" ]; then
export JAVA_HOME="$JAVA11_HOME"
fi

# pre-conditions
command -v ant >/dev/null 2>&1 || { echo >&2 "ant needs to be installed"; exit 1; }
command -v pip3 >/dev/null 2>&1 || { echo >&2 "pip3 needs to be installed"; exit 1; }
command -v virtualenv >/dev/null 2>&1 || { echo >&2 "virtualenv needs to be installed"; exit 1; }

# print debug information on versions
ant -version
pip3 --version
virtualenv --version

# Loop to prevent failure due to maven-ant-tasks not downloading a jar..
for x in $(seq 1 3); do
ant clean jar
Expand Down
3 changes: 3 additions & 0 deletions build-scripts/cassandra-test-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ else
command -v docker >/dev/null 2>&1 || { echo >&2 "docker needs to be installed"; exit 1; }
(docker info >/dev/null 2>&1) || { echo >&2 "docker needs to running"; exit 1; }

# print debug information on versions
docker --version

# start the docker container
if [ "$#" -lt 5 ]; then
echo "Usage: cassandra-test-docker.sh REPO BRANCH BUILDS_REPO_URL BUILDS_BRANCH DOCKER_IMAGE [target] [split_chunk]"
Expand Down
4 changes: 4 additions & 0 deletions build-scripts/cassandra-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ command -v ant >/dev/null 2>&1 || { echo >&2 "ant needs to be installed"; exit 1
command -v git >/dev/null 2>&1 || { echo >&2 "git needs to be installed"; exit 1; }
[ -f "build.xml" ] || { echo >&2 "build.xml must exist"; exit 1; }

# print debug information on versions
ant -version
git --version

# lists all tests for the specific test type
_list_tests() {
local -r classlistprefix="$1"
Expand Down

0 comments on commit 51a654f

Please sign in to comment.