Merge "Correct bug report save location"

This commit is contained in:
Jenkins 2016-09-15 16:44:06 +00:00 committed by Gerrit Code Review
commit c0b769a351
3 changed files with 12 additions and 10 deletions

View File

@ -1,4 +1,4 @@
--- ---
result_dir: "{{inventory_dir}}/../results" result_dir: "{{ playbook_dir }}/../../results"
mysql_tuner_script: https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl mysql_tuner_script: https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl

View File

@ -57,9 +57,10 @@
ansible_python_interpreter: "/usr/bin/python" ansible_python_interpreter: "/usr/bin/python"
name: Generating bug report name: Generating bug report
tasks: tasks:
- local_action: template src=templates/bug_report.j2 dest={{result_dir}}/bug_report.log - file: "path={{result_dir}} state=directory"
- template: src=templates/bug_report.j2 dest={{result_dir}}/bug_report.log
become: false become: false
- local_action: template src=templates/mysql_report.j2 dest={{result_dir}}/mysql_report.log - template: src=templates/mysql_report.j2 dest={{result_dir}}/mysql_report.log
become: false become: false
- replace: dest={{result_dir}}/mysql_report.log regexp='\[([^\s+]+)' replace='' - replace: dest={{result_dir}}/mysql_report.log regexp='\[([^\s+]+)' replace=''
- replace: dest={{result_dir}}/mysql_report.log regexp='\r' replace='' - replace: dest={{result_dir}}/mysql_report.log regexp='\r' replace=''

View File

@ -44,11 +44,11 @@ deployCloud()
pushd $WORKSPACE/tripleo-quickstart pushd $WORKSPACE/tripleo-quickstart
bash quickstart.sh \ bash quickstart.sh \
--tags all \ --tags all \
-e undercloud_image_url="http://artifacts.ci.centos.org/artifacts/rdo/images/$RELEASE/$BUILD_SYS/$LOCATION/undercloud.qcow2" \ --playbook quickstart-extras.yml \
--config $WORKSPACE/config/general_config/$CONFIG.yml \ --requirements quickstart-extras-requirements.txt \
--working-dir $WORKSPACE/ \ -R mitaka \
--teardown all \ --bootstrap \
--no-clone \ --working-dir $WORKSPACE \
$VIRTHOST $RELEASE $VIRTHOST $RELEASE
popd popd
} }
@ -100,12 +100,13 @@ runCheck()
ansible-playbook --ssh-common-args="-F $WORKSPACE/ssh.config.ansible" -i $WORKSPACE/hosts check/site.yml ansible-playbook --ssh-common-args="-F $WORKSPACE/ssh.config.ansible" -i $WORKSPACE/hosts check/site.yml
if [[ $($SSH_CMD "cat /home/stack/ansible/bug_report.log") == "" ]] pushd $WORKSPACE/browbeat/results
if [[ $(cat bug_report.log) == "" ]]
then then
#checks failed to create the bug_report.log #checks failed to create the bug_report.log
exit 1 exit 1
fi fi
popd
popd popd
} }