| ################################################################################################## |
| # This shell is designed to support retrieval of application debugging data in the case of |
| # an ETE test failure. This script, along with the gather_application_data.sh will be installed |
| # in /opt on each of the ONAP VMs. The gather_application_data function is designed by each |
| # application to gather the relevant debugging data into the current working directory |
| # to be zipped up and transferred to the Robot VM and ultimately, posted in the failed Jenkins |
| ################################################################################################## |
| if [ "$JOB_NUMBER" == '' ];then |
| if [ "$APPLICATION" == '' ];then |
| if [ -e /opt/gather_application_data.sh ]; then |
| source /opt/gather_application_data.sh |
| >&2 echo "${APPLICATION} No gather_application_data function" |
| FOLDER=/tmp/gather_data/${APPLICATION}_${JOB_NUMBER} |
| tar --remove-files -cvzf ${APPLICATION}_${JOB_NUMBER}.tar.gz ${APPLICATION}_${JOB_NUMBER} |