Specify path where to upload logs

Without this, the playbook results in an error:

 2019-01-24 21:50:57.299608 | POST-RUN START: [trusted : gerrit.cesnet.cz/ci/project-config/playbooks/base/post-logs.yaml@master]
 2019-01-24 21:50:58.780188 |
 2019-01-24 21:50:58.780323 | PLAY [localhost]
 2019-01-24 21:50:58.796790 |
 2019-01-24 21:50:58.796906 | TASK [add-fileserver : Create SSH private key tempfile]
 2019-01-24 21:50:59.129152 | localhost | changed
 2019-01-24 21:50:59.135182 |
 2019-01-24 21:50:59.135305 | TASK [add-fileserver : Create SSH private key from secret]
 2019-01-24 21:50:59.831531 | localhost | changed
 2019-01-24 21:50:59.841384 |
 2019-01-24 21:50:59.841502 | TASK [add-fileserver : Add fileserver ssh key]
 2019-01-24 21:51:00.181326 | localhost | Identity added: /tmp/tmpdzo80fgc/cf105bdf113c49a4be1920331b0e75c7/work/tmp/ansible.cfzmhdr7 (/tmp/tmpdzo80fgc/cf105bdf113c49a4be1920331b0e75c7/work/tmp/ansible.cfzmhdr7)
 2019-01-24 21:51:00.181558 | localhost | ok: Runtime: 0:00:00.006127
 2019-01-24 21:51:00.188186 |
 2019-01-24 21:51:00.188301 | TASK [add-fileserver : Remove SSH private key from disk]
 2019-01-24 21:51:00.419483 | localhost | ok: Runtime: 0:00:00.005956
 2019-01-24 21:51:00.425442 |
 2019-01-24 21:51:00.425562 | TASK [add-fileserver : Add fileserver to inventory]
 2019-01-24 21:51:00.475410 | localhost | changed
 2019-01-24 21:51:00.482482 |
 2019-01-24 21:51:00.482595 | TASK [add-fileserver : Add fileserver server to known hosts]
 2019-01-24 21:51:00.838710 | localhost | changed
 2019-01-24 21:51:00.848778 |
 2019-01-24 21:51:00.848863 | PLAY [ci-logs.gerrit.cesnet.cz]
 2019-01-24 21:51:00.855363 |
 2019-01-24 21:51:00.855466 | TASK [upload-logs : Set zuul-log-path fact]
 2019-01-24 21:51:00.870975 | ci-logs.gerrit.cesnet.cz | ok
 2019-01-24 21:51:00.892392 |
 2019-01-24 21:51:00.892497 | TASK [set-zuul-log-path-fact : Set log path for a change]
 2019-01-24 21:51:01.002778 | ci-logs.gerrit.cesnet.cz | ok
 2019-01-24 21:51:01.011242 |
 2019-01-24 21:51:01.011345 | TASK [set-zuul-log-path-fact : Set log path for a ref update]
 2019-01-24 21:51:01.033476 | ci-logs.gerrit.cesnet.cz | skipping: Conditional result was False
 2019-01-24 21:51:01.038674 |
 2019-01-24 21:51:01.038779 | TASK [set-zuul-log-path-fact : Set log path for a periodic job]
 2019-01-24 21:51:01.060904 | ci-logs.gerrit.cesnet.cz | skipping: Conditional result was False
 2019-01-24 21:51:01.065494 |
 2019-01-24 21:51:01.065617 | TASK [upload-logs : Create log directories]
 2019-01-24 21:51:01.798788 | ci-logs.gerrit.cesnet.cz | ERROR
 2019-01-24 21:51:01.799065 | ci-logs.gerrit.cesnet.cz | {
 2019-01-24 21:51:01.799133 | ci-logs.gerrit.cesnet.cz |   "msg": "There was an issue creating /srv/static as requested: [Errno 13] Permission denied: '/srv/static'",
 2019-01-24 21:51:01.799180 | ci-logs.gerrit.cesnet.cz |   "path": "/srv/static/logs/86/1286/3/check/testjob-fedora/cf105bd",
 2019-01-24 21:51:01.799230 | ci-logs.gerrit.cesnet.cz |   "state": "absent"
 2019-01-24 21:51:01.799271 | ci-logs.gerrit.cesnet.cz | }
 2019-01-24 21:51:01.800502 |
 2019-01-24 21:51:01.800579 | PLAY RECAP
 2019-01-24 21:51:01.800644 | ci-logs.gerrit.cesnet.cz | ok: 1 changed: 0 unreachable: 0 failed: 1
 2019-01-24 21:51:01.800695 | localhost | ok: 6 changed: 6 unreachable: 0 failed: 0
 2019-01-24 21:51:01.800733 |
 2019-01-24 21:51:01.872003 | POST-RUN END RESULT_NORMAL: [trusted : gerrit.cesnet.cz/ci/project-config/playbooks/base/post-logs.yaml@master]

Change-Id: Ic901156904cb9225801c6a7ccaa1614f2170737c
1 file changed
tree: 87fa35bfced884819c4b67778559774c7b18f606
  1. playbooks/
  2. scripts/
  3. turbo-hipster/
  4. zuul.d/
  5. zuul/