Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default for MULTI_NODE to avoid unbound variable error #6216

Merged
merged 1 commit into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions integration-test/start_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ docker stop ${SG_TEST_COUCHBASE_SERVER_DOCKER_NAME} || true
docker rm ${SG_TEST_COUCHBASE_SERVER_DOCKER_NAME} || true
# --volume: Makes and mounts a CBS folder for storing a CBCollect if needed

if [ "${MULTI_NODE}" == "true" ]; then
if [ "${MULTI_NODE:-}" == "true" ]; then
${DOCKER_COMPOSE} up -d --force-recreate --renew-anon-volumes --remove-orphans
else
# single node
Expand All @@ -74,7 +74,7 @@ docker exec couchbase couchbase-cli setting-index --cluster couchbase://localhos
curl -u Administrator:password -v -X POST http://127.0.0.1:8091/node/controller/rename -d 'hostname=127.0.0.1'


if [ "${MULTI_NODE}" == "true" ]; then
if [ "${MULTI_NODE:-}" == "true" ]; then
REPLICA1_NAME=couchbase-replica1
REPLICA2_NAME=couchbase-replica2
CLI_ARGS=(-c couchbase://couchbase -u Administrator -p password)
Expand Down
2 changes: 1 addition & 1 deletion jenkins-integration-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ if [ "${RUN_WALRUS}" == "true" ]; then
fi

# Run CBS
if [ "${MULTI_NODE}" == "true" ]; then
if [ "${MULTI_NODE:-}" == "true" ]; then
# multi node
./integration-test/start_server.sh -m "${COUCHBASE_SERVER_VERSION}"
export SG_TEST_BUCKET_NUM_REPLICAS=1
Expand Down