From 05522103a1b1e1c61b171d0fdde0bd24d652b030 Mon Sep 17 00:00:00 2001 From: Gary Verhaegen Date: Mon, 25 Oct 2021 18:31:26 +0200 Subject: [PATCH] oracle debug Collect Oracle logs for further debugging. CHANGELOG_BEGIN CHANGELOG_END --- ci/build.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ci/build.yml b/ci/build.yml index 26018092c5be..cd8f185a62fa 100644 --- a/ci/build.yml +++ b/ci/build.yml @@ -318,6 +318,14 @@ jobs: //triggers/service:test-oracle \ //ledger/participant-integration-api:participant-integration-api-tests-oracle \ //ledger/ledger-on-sql:conformance-test-oracle + + oracle_logs=$(Build.StagingDirectory)/oracle-logs + mkdir $oracle_logs + for path in $(docker exec oracle bash -c 'find /opt/oracle/diag/rdbms/ -type f'); do + # $path starts with a slash + mkdir -p $(dirname ${oracle_logs}${path}) + docker exec oracle bash -c "cat $path" > ${oracle_logs}${path} + done env: DOCKER_LOGIN: $(DOCKER_LOGIN) DOCKER_PASSWORD: $(DOCKER_PASSWORD) @@ -331,6 +339,13 @@ jobs: pathtoPublish: 'bazel-testlogs/' artifactName: 'Test logs Oracle' + - task: PublishBuildArtifacts@1 + condition: failed() + displayName: 'Publish Oracle image logs' + inputs: + pathtoPublish: '$(Build.StagingDirectory)/oracle-logs' + artifactName: 'Oracle image logs' + - template: tell-slack-failed.yml parameters: trigger_sha: '$(trigger_sha)'