get cxflow end-to-end tests logs to circleci
@@ -235,8 +235,20 @@ jobs:
e2e-tests:
docker:
- image: "circleci/openjdk:8-jdk"
+ parameters:
+ cluster-name:
+ type: string
+ namespace:
+ type: string
+ release-name:
+ type: string
+ version:
+ type: string
steps:
- checkout
+ - aws-eks/update-kubeconfig-with-authenticator:
+ cluster-name: << parameters.cluster-name >>
+ install-kubectl: true
- run:
name: Run E2E Tests
command: |
@@ -249,10 +261,19 @@ jobs:
mkdir -p ~/test-results/junit/
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/test-results/junit/ \;
when: always
+ - run:
+ name: Save application logs
+ command: |
+ export POD_NAME=$(kubectl get pods -o custom-columns=:metadata.name -n << parameters.namespace >> | grep -v ingress | grep -v external-dns | tr -d '\n')
+ mkdir -p ~/application-logs/
+ kubectl logs ${POD_NAME} -n << parameters.namespace >> > ~/application-logs/${POD_NAME}.log
+ when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit
+ - store_artifacts:
+ path: ~/application-logs
integration-tests:
docker:
@@ -526,6 +547,10 @@ workflows:
- docker-build
- component-tests
- e2e-tests:
+ cluster-name: eks-cxflow-ci
+ namespace: cxflow-${CIRCLE_SHA1::7}
+ release-name: cxflow-${CIRCLE_SHA1::7}
+ version: v3.2.1
filters:
branches:
only:
