mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Move scripts used by travis jobs under travis folder because when mirroring all scripts folders are excluded
This commit is contained in:
17
travis/scripts/getLogs.sh
Normal file
17
travis/scripts/getLogs.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -x
|
||||
|
||||
# Display running containers
|
||||
docker ps
|
||||
|
||||
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}')
|
||||
|
||||
docker logs $alfrescoContainerId > alfresco.log
|
||||
if [ -n "$shareContainerId" ]; then
|
||||
docker logs $shareContainerId > share.log
|
||||
fi
|
||||
if [ -n "$solrContainerId" ]; then
|
||||
docker logs $solrContainerId > solr.log
|
||||
fi
|
Reference in New Issue
Block a user