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