Created
January 5, 2017 14:03
-
-
Save trown/83bda1f330ff28afe7cb515515f7d3ef to your computer and use it in GitHub Desktop.
function for opening gzipped CI logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getlog(){ | |
| pushd $(mktemp -d) | |
| curl -O $1 | |
| archive=${1##*/} | |
| gunzip $archive | |
| logname=${archive%.gz} | |
| less $logname | |
| popd | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
used like:
getlog http://logs.openstack.org/10/416110/42/experimental/gate-tripleo-ci-centos-7-nonha-multinode-oooq-nv/5653541/logs/var/log/oooq/collected_logs/undercloud/home/jenkins/toci_vxlan_networking_multinode.sh.log.gz