Skip to content

Commit

Permalink
oracle debug
Browse files Browse the repository at this point in the history
Collect Oracle logs for further debugging.

CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
garyverhaegen-da committed Oct 28, 2021
1 parent bf00956 commit 95f5976
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ci/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)'
Expand Down

0 comments on commit 95f5976

Please sign in to comment.