From bd144360a06108f839197cc88245b2471cdb6515 Mon Sep 17 00:00:00 2001 From: Serguei Bezverkhi Date: Fri, 14 Jul 2023 08:36:16 +0200 Subject: [PATCH] add collection of post mortem logs when pipeline fails Signed-off-by: Serguei Bezverkhi --- .github/workflows/cicd.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 8e742a03..a91a7e95 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -67,7 +67,18 @@ jobs: - name: starts unicast v4 integration test run: docker compose -f ./build/unicastv4-bgp/test_bed.yml up --detach - name: check conection to kafka and bmp session with a router + id: session run: ./build/monitor_container.sh gobmp + continue-on-error: true - name: run validator for ipv4 unicast + id: validation run: ./bin/validator --validate=true --kafka=127.0.0.1:9092 --msg-file=./testdata/validator/ipv4_unicast.msg + continue-on-error: true + - name: Check on failures + if: steps.session.outcome != 'success' || steps.validation.outcome != 'success' + run: | + docker ps -a + docker logs gobmp + docker logs xr-1 + exit 1