additional logging to figure out why enterprise rest api tests don't run with success

This commit is contained in:
rodicasutu
2020-12-07 11:55:57 +00:00
parent 1079334c70
commit 4579c66368
2 changed files with 11 additions and 1 deletions

View File

@@ -4,8 +4,10 @@ set -x
alfrescoContainerId=$(docker ps -a | grep '_alfresco_' | awk '{print $1}')
shareContainerId=$(docker ps -a | grep '_share_' | awk '{print $1}')
solrContainerId=$(docker ps -a | grep '_search_' | awk '{print $1}')
activeMQContainerId=$(docker ps -a | grep '_activemq_' | awk '{print $1}')
docker logs $alfrescoContainerId > alfresco.log
docker logs $activeMQContainerId > activemq.log
if [ -n "$shareContainerId" ]; then
docker logs $shareContainerId > share.log
fi

View File

@@ -33,12 +33,20 @@ jobs:
- sudo free -m -t
script:
- travis_wait 90 mvn -B test -pl :alfresco-governance-services-automation-enterprise-rest-api -Dskip.automationtests=false
after_failure: docker ps -a | grep '_alfresco_1' | awk '{print $1}' | xargs docker logs | tail -5000
after_failure:
- bash scripts/getLogs.sh
- docker ps -a | grep '_activemq_1' | awk '{print $1}' | xargs docker logs | tail -5000
- docker ps -a | grep '_alfresco_1' | awk '{print $1}' | xargs docker logs | tail -5000
addons:
artifacts:
paths:
- ./rm-automation/rm-automation-enterprise-rest-api/target/reports/rm-automation-enterprise-rest-api.log
- ./rm-automation/rm-automation-enterprise-rest-api/target/surefire-reports
- alfresco.log
- solr.log
- share.log
- activemq.log
target_paths: $TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER
- name: "Enterprise Rest API WORM Tests"
stage: Tests