AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | echo "Starting teardown script" |
efiacor | 830e11d | 2021-01-29 14:28:34 +0000 | [diff] [blame^] | 3 | source ${WORKSPACE}/scripts/dmaap-message-router/dmaap-mr-teardown.sh |
| 4 | dmaap_mr_teardown |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 5 | TEST_PLANS_DIR=$WORKSPACE/plans/dcaegen2-services-pmsh/testsuite |
| 6 | mkdir -p $WORKSPACE/archives |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 7 | docker exec pmsh /bin/sh -c "cat /var/log/ONAP/dcaegen2/services/pmsh/*" |
efiacor | 49b4644 | 2020-07-06 11:55:44 +0100 | [diff] [blame] | 8 | docker cp pmsh:/var/log/ONAP/dcaegen2/services/pmsh/application.log $WORKSPACE/archives/ |
AndyWalshe | b412c7b | 2020-02-13 15:05:21 +0000 | [diff] [blame] | 9 | docker-compose -f $TEST_PLANS_DIR/docker-compose.yml logs --no-color > $WORKSPACE/archives/pmsh-docker-compose.log |
| 10 | docker-compose -f $TEST_PLANS_DIR/docker-compose.yml down -v |