Skip to content

Commit 9eda4e4

Browse files
authored
COH-29926 - Archive server logs for CI runs on both GitHub and Jenkins (#130)
* COH-29926 - Archive server logs for CI runs on both GitHub and Jenkins
1 parent e16ab7c commit 9eda4e4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/validate.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,9 @@ jobs:
8080
${{ matrix.coherenceVersion }} \
8181
${{ matrix.base-image }} \
8282
${{ matrix.profile }}
83+
- name: Archive server logs
84+
uses: actions/upload-artifact@v4
85+
with:
86+
name: server-logs-${{ matrix.coherenceVersion }}
87+
path: ./tests/utils/*.txt
88+
retention-days: 10

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ docs: ## Generate doc
172172
.PHONY: test-cluster-startup
173173
test-cluster-startup: $(BUILD_PROPS) ## Startup any test cluster members using docker-compose
174174
cd tests/utils && ${COMPOSE} -f docker-compose-2-members.yaml up -d
175+
$(eval LOGFILE_NAME=log-clear-tests-$(COHERENCE_VERSION).txt)
176+
ifeq ($(RUN_SECURE), true)
177+
$(eval LOGFILE_NAME=log-ssl-tests-$(COHERENCE_VERSION).txt)
178+
endif
179+
cd tests/utils && ${COMPOSE} -f docker-compose-2-members.yaml logs -f --no-color > $(LOGFILE_NAME) &
175180

176181
# ----------------------------------------------------------------------------------------------------------------------
177182
# Shutdown any cluster members via docker compose

0 commit comments

Comments
 (0)