The Problem with build.log, kernel.config and zImage links in the FrontEnd

Issue Background

The links in the KernelCI FrontEnd Web Application that allow the user to access the build.log, kernel.config, and zImage files and the dtbs directory do not work.

Issue description

As you can see from the attached Screenshots, when I hover over the links, the URL has some duplicated information in it.

  • For instance, the link to the build.log file is shown as:
    • localhost:5000/build/cip-dreiwettertaft/kernel/v4.4.27/localhost/cip-dreiwettertaft/kernel/v4.4.27/arm-tinyconfig/build.log
  • The kernel.config link is shown as:
    • localhost:5000/build/cip-dreiwettertaft/kernel/v4.4.27/localhost/cip-dreiwettertaft/kernel/v4.4.27/arm-tinyconfig/kernel.config
  • The zImage link is shown as:
    • localhost:5000/build/cip-dreiwettertaft/kernel/v4.4.27/localhost/cip-dreiwettertaft/kernel/v4.4.27/arm-tinyconfig/zImage

The files are actually stored in the following location on disk: /var/www/images/kernel-ci/cip-dreiwettertaft/v4.4.27/arm-tinyconfig

Screenshot__1_from_2016-12-07_19-50-36Screenshot__2_from_2016-12-07_19-50-57Screenshot__3_from_2016-12-07_19-51-08

Acceptance criteria