zuul-jobs/roles/upload-logs/README.rst
Monty Taylor 3d02630d1b
Add flag for turning off successful job logs
As a relief valve for times of storage pressure on the receiving end,
add a flag that can be set to skip log uploads for sucessful jobs.

It uses the same logic as emit-ara-html.

zuul_site_upload_logs == true (the default) will always upload logs
zuul_site_upload_logs == false will never upload logs
zuul_site_upload_logs == 'failure' will only upload failure logs

Setting this variable should be done in site variables.

Change-Id: I2a55730976520b75dcc98f86f34b7929f9243e62
2018-01-25 12:46:01 -06:00

24 lines
598 B
ReStructuredText

Upload logs to a static webserver
This uploads logs to a static webserver using SSH.
**Role Variables**
.. zuul:rolevar:: zuul_log_url
Base URL where logs are to be found.
.. zuul:rolevar:: zuul_logserver_root
:default: /srv/static/logs
The root path to the logs on the logserver.
.. zuul:rolevar:: zuul_site_upload_logs
:default: true
Controls when logs are uploaded. true, the default, means always upload
logs. false means never upload logs. 'failure' means to only upload logs
when the job has failed.
.. note:: Intended to be set by admins via site-variables.