blob: 75e624e58e7afb1c7fe5962e6c8b5611c8f927ba [file] [log] [blame]
AndyWalsheb412c7b2020-02-13 15:05:21 +00001#!/bin/bash
2echo "Starting teardown script"
efiacor830e11d2021-01-29 14:28:34 +00003source ${WORKSPACE}/scripts/dmaap-message-router/dmaap-mr-teardown.sh
4dmaap_mr_teardown
AndyWalsheb412c7b2020-02-13 15:05:21 +00005TEST_PLANS_DIR=$WORKSPACE/plans/dcaegen2-services-pmsh/testsuite
6mkdir -p $WORKSPACE/archives
AndyWalsheb412c7b2020-02-13 15:05:21 +00007docker exec pmsh /bin/sh -c "cat /var/log/ONAP/dcaegen2/services/pmsh/*"
efiacor49b46442020-07-06 11:55:44 +01008docker cp pmsh:/var/log/ONAP/dcaegen2/services/pmsh/application.log $WORKSPACE/archives/
AndyWalsheb412c7b2020-02-13 15:05:21 +00009docker-compose -f $TEST_PLANS_DIR/docker-compose.yml logs --no-color > $WORKSPACE/archives/pmsh-docker-compose.log
10docker-compose -f $TEST_PLANS_DIR/docker-compose.yml down -v